joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409130
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
or ebx, 0xffffffff
cmp dword [0x433908], 0
push edi
jne 0x4091e8
xor ecx, ecx
xor eax, eax
lea esp, [esp]
test al, 1
je 0x40915d
shr eax, 1
xor eax, 0xedb88320
jmp 0x40915f
shr eax, 1
test al, 1
je 0x40916c
shr eax, 1
xor eax, 0xedb88320
jmp 0x40916e
shr eax, 1
test al, 1
je 0x40917b
shr eax, 1
xor eax, 0xedb88320
jmp 0x40917d
shr eax, 1
test al, 1
je 0x40918a
shr eax, 1
xor eax, 0xedb88320
jmp 0x40918c
shr eax, 1
test al, 1
je 0x409199
shr eax, 1
xor eax, 0xedb88320
jmp 0x40919b
shr eax, 1
test al, 1
je 0x4091a8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4091aa
shr eax, 1
test al, 1
je 0x4091b7
shr eax, 1
xor eax, 0xedb88320
jmp 0x4091b9
shr eax, 1
test al, 1
je 0x4091c6
shr eax, 1
xor eax, 0xedb88320
jmp 0x4091c8
shr eax, 1
mov dword [ecx*4 + 0x4350c0], eax
inc ecx
mov eax, ecx
cmp ecx, 0x100
jl 0x409150
mov dword [0x433908], 1
mov ebp, dword [esp + 0x18]
push 0
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea esp, [esp]
push 0
lea eax, [esp + 0x14]
push eax
push 0x1000
push 0x433910
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409275
mov ebp, dword [esp + 0x10]
mov edx, 0x433910
xor ecx, ecx
xor esi, esi
lea eax, [ebp + 0x433910]
mov edi, eax
sub edi, edx
cmp eax, edx
cmovb edi, ecx
test edi, edi
je 0x40925a
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
inc esi
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x4350c0]
cmp esi, edi
jb 0x409240
test ebp, ebp
mov ebp, dword [esp + 0x18]
jne 0x409200
mov eax, dword [esp + 0x1c]
not ebx
pop edi
pop esi
pop ebp
mov dword [eax], ebx
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x409480
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
mov ebx, dword [edi]
test esi, esi
je 0x4094df
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4094a0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
mov eax, 0x80000000
cmp esi, eax
cmovb eax, esi
push eax
push ebx
push dword [edi + 8]
call ebp
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
add dword [edi + 0x14], ecx
and eax, 0xfffffffe
add ebx, ecx
sub esi, ecx
add eax, 2
jne 0x4094e1
test ecx, ecx
je 0x4094e6
test esi, esi
jne 0x4094a0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
ret
Function at 0x4094f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
xor edi, edi
mov esi, dword [ebx]
and esi, 7
cmp eax, 5
jae 0x40950d
pop edi
pop esi
xor eax, eax
pop ebx
ret
add dword [esp + 0x18], 5
mov edx, dword [esp + 0x10]
push ebp
lea ebp, [eax - 4]
add ebp, edx
lea esp, [esp]
lea eax, [edi + edx]
cmp eax, ebp
jae 0x409536
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x409536
inc eax
cmp eax, ebp
jb 0x409527
mov ecx, eax
sub ecx, edi
mov edi, eax
sub ecx, edx
sub edi, edx
cmp eax, ebp
jae 0x409614
cmp ecx, 2
jbe 0x40958e
xor esi, esi
movzx ebx, byte [eax + 4]
lea ecx, [ebx + 1]
test cl, 0xfe
jne 0x4095ad
movzx ecx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
shl ebx, 8
or ebx, ecx
mov ecx, dword [esp + 0x1c]
add ecx, edi
add edi, 5
cmp dword [esp + 0x24], 0
mov dword [esp + 0x18], ecx
je 0x4095b8
add ebx, ecx
jmp 0x4095ba
shr esi, cl
test esi, esi
je 0x40954f
cmp esi, 4
ja 0x4095ad
cmp esi, 3
je 0x4095ad
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x40954f
or esi, 8
shr esi, 1
inc edi
jmp 0x409520
sub ebx, ecx
test esi, esi
je 0x4095f1
and esi, 6
mov edx, ebx
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x4095eb
mov edx, 0x100
shl edx, cl
dec edx
xor ebx, edx
cmp dword [esp + 0x24], 0
je 0x4095e7
add ebx, dword [esp + 0x18]
jmp 0x4095eb
sub ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
shr ecx, 0x10
and bl, 1
neg bl
mov byte [eax + 3], cl
mov byte [eax + 4], bl
jmp 0x409520
pop ebp
cmp ecx, 2
jbe 0x409628
mov eax, dword [esp + 0x1c]
xor esi, esi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0x1c]
shr esi, cl
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x409640
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x434914], 0
push esi
jne 0x40970d
xor esi, esi
mov eax, esi
and al, 1
movzx ecx, al
mov eax, esi
neg ecx
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx edx, al
neg edx
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
movzx ecx, al
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
mov dword [esi*4 + 0x434910], eax
inc esi
cmp esi, 0x100
jl 0x409650
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x10]
not eax
test edx, edx
je 0x40973b
mov esi, dword [esp + 0xc]
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x434910]
dec edx
jne 0x409720
not eax
pop esi
ret 0xc
Function at 0x403b20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
sub esp, 0x10
xor ecx, ecx
test edx, edx
je 0x403bf5
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
cmp edx, 0x20
jb 0x403bd3
lea eax, [ebx - 1]
add eax, edx
cmp esi, eax
ja 0x403b5a
lea eax, [esi - 1]
add eax, edx
cmp eax, ebx
jae 0x403bd3
lea eax, [edi - 1]
add eax, edx
cmp esi, eax
ja 0x403b6c
lea eax, [esi - 1]
add eax, edx
cmp eax, edi
jae 0x403bd3
mov eax, edx
mov edx, edi
sub edx, ebx
and eax, 0xffffffe0
mov dword [ebp - 4], edx
mov edx, esi
sub edx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edx
mov eax, ebx
mov ebx, dword [ebp - 8]
mov edx, edi
mov edi, dword [ebp - 4]
sub edx, esi
mov dword [ebp - 0xc], edx
lea edx, [esi + 0x10]
movups xmm0, xmmword [eax]
mov esi, dword [ebp - 0xc]
add ecx, 0x20
lea eax, [eax + 0x20]
lea edx, [edx + 0x20]
movups xmm1, xmmword [edi + eax - 0x20]
pxor xmm1, xmm0
movups xmmword [ebx + eax - 0x20], xmm1
movups xmm1, xmmword [esi + edx - 0x20]
mov esi, dword [ebp + 0x10]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
cmp ecx, dword [ebp - 0x10]
jb 0x403b94
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp ecx, edx
jae 0x403bf2
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ebx
sub edx, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
mov byte [eax + esi - 1], cl
sub edx, 1
jne 0x403be0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x56a430
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd7f12a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0xdca0c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.00d05487
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x56a4f0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00d58e5d
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0xdc6234
push eax
call fcn.00d57324
push edi
push esi
call fcn.00d05afe
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00d06a41
mov esp, ebp
pop ebp
ret 4
Function at 0x56f590
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0xdca0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call edi
test al, 0x80
mov eax, 1
push 0x12
cmovne esi, eax
call edi
test al, al
jns 0x56f5dc
or esi, 2
push 0x10
call edi
test al, al
jns 0x56f5e7
or esi, 4
push 0x5b
call edi
test al, al
jns 0x56f5f2
or esi, 8
push 0x5c
call edi
test al, al
jns 0x56f5fd
or esi, 8
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
test ebx, 0x1000000
je 0x56f625
cmp ecx, 0xd
jne 0x56f645
mov dword [ebp - 0x14], 0x23
jmp 0x56f6c7
xor eax, eax
mov edx, 0x24
nop dword [eax]
cmp edx, ecx
je 0x56f6bd
mov edx, dword [eax*8 + 0xd89290]
inc eax
cmp edx, 0x2c
jne 0x56f630
xor eax, eax
mov edx, 0x1b
nop dword [eax]
cmp edx, ecx
je 0x56f6b4
mov edx, dword [eax*8 + 0xd892f0]
inc eax
cmp edx, 0x2c
jne 0x56f650
xor eax, eax
mov edx, 0x11
cmp edx, ecx
je 0x56f6a1
mov edx, dword [eax*8 + 0xd893d0]
inc eax
cmp edx, 0x2c
jne 0x56f668
lea eax, [ebp - 0x18]
sar ebx, 0x10
push eax
movzx eax, bl
push eax
call fcn.005600e0
add esp, 8
test eax, eax
jne 0x56f6c7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d06a41
mov esp, ebp
pop ebp
ret
mov eax, dword [eax*8 + 0xd893cc]
mov dword [ebp - 0x10], eax
not eax
and eax, esi
mov dword [ebp - 0xc], eax
jmp 0x56f6c7
mov eax, dword [eax*8 + 0xd892ec]
jmp 0x56f6c4
mov eax, dword [eax*8 + 0xd8928c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
push edx
push ecx
mov eax, dword [ecx + 0x64]
push eax
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00d06a41
mov esp, ebp
pop ebp
ret
Function at 0x5729a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0055fff0
push dword [ebp + 0x1c]
mov dword [ebp - 4], eax
push 0
push dword [ebp + 0x18]
mov ecx, dword [eax]
push 0
push 0
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.00d5e8ad
mov esi, eax
or eax, 0xffffffff
test esi, esi
push str.char__
cmovs esi, eax
inc esi
push esi
call fcn.0056e440
push dword [ebp + 0x1c]
mov edi, eax
mov eax, dword [ebp - 4]
push 0
push dword [ebp + 0x18]
push esi
push edi
push dword [eax + 4]
push dword [eax]
call fcn.00d5e8d1
add esp, 0x40
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._libui___hs:_hs:_hs____hs_hs_n
call fcn.00578f70
push edi
mov esi, eax
call fcn.0056e4f0
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.0056e4f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_DebugBreak]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5751d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0
push 0
push 0xe
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push str.WCHAR__
lea ecx, [esi*2 + 2]
push ecx
call fcn.0056e440
add esp, 8
lea ecx, [esi + 1]
mov ebx, eax
push ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
je 0x575214
xor eax, eax
mov word [ebx], ax
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x575220
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0xdca0c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0
push 0xe
push ebx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push str.WCHAR__
mov dword [ebp - 0x10], esi
lea ecx, [esi*2 + 2]
push ecx
call fcn.0056e440
add esp, 8
lea ecx, [esi + 1]
mov edi, eax
push ecx
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
je 0x57529e
xor eax, eax
mov word [edi], ax
push edi
call fcn.0056e4f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d06a41
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x575282
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x575282
push dword [0xdcb2d8]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x5752cd
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x575282
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
jne 0x5752e6
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call fcn.0056e4f0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, dword [ebp - 0xc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00d06a41
mov esp, ebp
pop ebp
ret
Function at 0x5c5ee0
Capabilities:
Hash data with md5

Disassembly:
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0xc8dd90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
push 0xc8ddb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0xc8e520
Capabilities:
Access peb ldr_data
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd7ff8b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0xdca0c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0xc8e564
mov eax, dword [ecx]
jmp 0xc8e566
mov eax, ecx
mov byte [eax], 0
push 0
push 0xd87824
mov dword [ebp - 4], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.00459550
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xd10230
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
push edi
lea edi, [esi + eax]
cmp esi, edi
jae 0xd10266
mov al, byte [esi]
push eax
call fcn.00d1e780
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0xd10248
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0xd1ad70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x6d7], 0
je 0xd1ae08
cmp dword [esi + 0x1ac], 0
je 0xd1adc5
push esi
call fcn.00d0ba80
push 1
push esi
mov byte [ebp + 8], al
call fcn.00d0bd00
push dword [esi + 0x15c]
mov eax, dword [esi + 0x1ac]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
push dword [ebp + 8]
push esi
call fcn.00d0bd00
add esp, 0x28
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sub eax, 0
je 0xd1add9
sub eax, 1
je 0xd1add9
sub eax, 1
jne 0xd1ae08
push dword [esi + 0x158]
lea eax, [ecx*2 + 0xdada3c]
push 1
add eax, ecx
push 2
push eax
call fcn.00d69f52
push dword [esi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00d69f52
add esp, 0x20
pop esi
pop ebp
ret
Function at 0xd1c940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00d1c980
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.00d78ac9

Function at 0xd1cbc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0xdadc40
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
jne 0xd1cbe0
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0xdadc54
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp + 8]
mov ebx, eax
push 0xdadc64
push esi
mov dword [ebp - 8], ebx
call fcn.00d6b073
add esp, 8
test eax, eax
je 0xd1cc2c
test ebx, ebx
je 0xd1cc1c
push 8
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0xd1cc55
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0xd1cc55
push 0x800
push 0
push esi
call ebx
pop esi
mov edi, eax
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [ebp - 4], edx
test edx, edx
je 0xd1cd18
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xd1cc71
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0xdca0f4]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0xd1cd0e
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0xd1cd0e
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xd1ccb0
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0xd1ccd0
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0xd1cce5
mov eax, dword [ebp - 8]
test eax, eax
je 0xd1cd05
push 8
push 0
push ebx
call eax
jmp 0xd1cd0c
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0xdca0f8]
add esp, 4
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0xd1f6e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0xd1f70b
cmp dword [esi + 0x84], 0
je 0xd1f70b
push 2
push 3
push esi
call fcn.00d1eed0
push dword [ebp + 0xc]
call fcn.00d1f1a0
add esp, 0x10
jmp 0xd1f71a
push dword [ebp + 0xc]
call fcn.00d1f1a0
add esp, 4
test esi, esi
je 0xd1f72e
cmp dword [esi + 0x84], 0
je 0xd1f72e
push 3
push esi
call fcn.00d1ef10
add esp, 8
pop esi
pop ebp
ret
Function at 0xd2d410
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00d10b90
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.00d2b6c0
push dword [ebp + 0xc]
mov edi, eax
call fcn.00d2b6c0
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0xd2d497
lea eax, [ebp - 0x20]
push eax
call fcn.00d10b90
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00d10c40
add esp, 0x20
test edx, edx
ja 0xd2d4ba
jb 0xd2d485
cmp eax, 0x3e8
ja 0xd2d4ba
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0xd2d450
test edi, edi
je 0xd2d4a4
push edi
call fcn.00d5bffa
add esp, 4
test esi, esi
je 0xd2d4b1
push esi
call fcn.00d5bffa
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0xd2d4c7
push edi
call fcn.00d5bffa
add esp, 4
test esi, esi
je 0xd2d4d4
push esi
call fcn.00d5bffa
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xd2dd90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.00d6ee2d
add esp, 0x18
test eax, eax
je 0xd2ddb2
cmp eax, 0xffffffff
jne 0xd2ddb4
xor eax, eax
pop ebp
ret

Function at 0xd2df10
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00d57cf0
add esp, 0xc
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
pop ebp
ret
Function at 0xd2fcc0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0x14]
push esi
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 4
mov dword [ebp + 0x14], esi
call fcn.00d57cf0
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push dword [ebp + 0x18]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xd2fd8e
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0xd2fd70
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0xd2fd70
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0xd2fd70
cmp esi, dword [ebp - 0xc]
jb 0xd2fd70
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
test eax, eax
je 0xd2fd7e
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0xd2fd8e
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0xd31200
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00d31170

Function at 0xd3d0f0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0x18]
cmp eax, 0x64
jb 0xd3d122
push str.Couldnt_set_desired_mode
push esi
call fcn.00d1ae10
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0xd3d139
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.00d1aed0
add esp, 0xc
mov al, byte [ebp + 0x10]
cmp al, 0x13
jne 0xd3d151
push ebx
push esi
call fcn.00d3cdc0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x14
jne 0xd3d165
push esi
call fcn.00d3be20
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x15
jne 0xd3d179
push esi
call fcn.00d3cda0
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x16
jne 0xd3d188
push esi
call fcn.00d3cfd0
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret