joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401170
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov eax, 0x6a09e667
mov dword [edx + ecx + 0x108], 0xf3bcc908
mov dword [edx + ecx + 0x10c], eax
mov ecx, 8
shl ecx, 0
mov edx, dword [ebp - 4]
mov eax, 0xbb67ae85
mov dword [edx + ecx + 0x108], 0x84caa73b
mov dword [edx + ecx + 0x10c], eax
mov ecx, 8
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, 0x3c6ef372
mov dword [edx + ecx + 0x108], 0xfe94f82b
mov dword [edx + ecx + 0x10c], eax
mov ecx, 8
imul edx, ecx, 3
mov eax, dword [ebp - 4]
mov ecx, 0xa54ff53a
mov dword [eax + edx + 0x108], 0x5f1d36f1
mov dword [eax + edx + 0x10c], ecx
mov edx, 8
shl edx, 2
mov eax, dword [ebp - 4]
mov ecx, 0x510e527f
mov dword [eax + edx + 0x108], 0xade682d1
mov dword [eax + edx + 0x10c], ecx
mov edx, 8
imul eax, edx, 5
mov ecx, dword [ebp - 4]
mov edx, 0x9b05688c
mov dword [ecx + eax + 0x108], 0x2b3e6c1f
mov dword [ecx + eax + 0x10c], edx
mov eax, 8
imul ecx, eax, 6
mov edx, dword [ebp - 4]
mov eax, 0x1f83d9ab
mov dword [edx + ecx + 0x108], 0xfb41bd6b
mov dword [edx + ecx + 0x10c], eax
mov ecx, 8
imul edx, ecx, 7
mov eax, dword [ebp - 4]
mov ecx, 0x5be0cd19
mov dword [eax + edx + 0x108], 0x137e2179
mov dword [eax + edx + 0x10c], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov esp, ebp
pop ebp
ret
Function at 0x40b410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x40b430
jl 0x40b427
cmp dword [ebp + 0xc], 0
ja 0x40b430
xor eax, eax
xor edx, edx
jmp 0x40b567
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x40b452
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.0040b570
jmp 0x40b567
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00407ab0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x40b4c1
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00404ed0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00409390
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00408c70
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.004092e0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x40b558
mov ecx, dword [ebp - 8]
call fcn.00408310
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x40b531
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00411e22
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x40b52f
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x40b567
jmp 0x40b4dd
cmp dword [ebp - 4], 0
jbe 0x40b558
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00411e22
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40d41f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40d45e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d45e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d45e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d45e
cmp dword [ecx + 0x74], 0xe
jbe 0x40d45e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x419a36
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f758
push 0x42f750
push str.FlsAlloc
push 0x1e
call fcn.004198a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419a6a
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b134]
call esi
jmp 0x419a70
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x419ab4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f768
push 0x42f760
push str.FlsGetValue
push 0x20
call fcn.004198a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419aeb
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41b195
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b006

Function at 0x41b58f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d590
mov eax, dword [0x43a050]
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.0041a069
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41b5d1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41b72d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429b90
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 + 0x43be18]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c586
mov ecx, dword [esi*4 + 0x43be18]
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 0x41b726
cmp eax, dword [edi + ecx + 0x24]
jne 0x41b726
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 0x41b726
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c586
add esp, 0x14
test edx, edx
jl 0x41b726
jg 0x41b69c
test eax, eax
jb 0x41b726
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41b726
jl 0x41b6b6
cmp dword [ebp - 0x1008], eax
ja 0x41b726
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41b6d4
test ebx, ebx
je 0x41b70d
cmp ecx, edi
jae 0x41b70d
mov al, byte [ecx]
cmp al, 0xd
jne 0x41b6ee
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41b6fa
cmp byte [ecx + 1], 0xa
jne 0x41b6fa
inc ecx
jmp 0x41b6fa
movzx eax, al
movsx eax, byte [eax + 0x43a2d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41b6d4
cmp edx, ebx
jne 0x41b6d4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41b72b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c9d1
leave
ret
Function at 0x41ba24
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 + 0x43be18]
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 0x41ba64
cmp byte [ebx], 0xa
jne 0x41ba64
or byte [eax + edi + 0x28], 4
jmp 0x41ba69
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41bb67
mov al, byte [edx]
cmp al, 0x1a
je 0x41bb49
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ba98
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41babd
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41bac7
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 0x41ba7a
jmp 0x41bb67
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 0x41bb44
cmp dword [ebp - 0xc], 0
je 0x41bb44
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43be18]
test byte [eax + edi + 0x28], 0x48
je 0x41bb1e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41bb09
mov byte [esi], dl
jmp 0x41bb1a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43be18]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41bb67
cmp byte [ebp - 1], 0xa
jne 0x41bb2d
cmp esi, ebx
jne 0x41bb2d
mov byte [esi], 0xa
jmp 0x41bb66
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c5a4
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41bb67
mov byte [esi], 0xd
jmp 0x41bb66
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43be18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bb63
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bb67
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41bb70
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x43be18]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41bbb3
cmp word [esi], dx
jne 0x41bbb3
or byte [edi + eax + 0x28], 4
jmp 0x41bbb8
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41bd0b
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41bceb
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41bbfa
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41bc30
cmp eax, edx
jae 0x41bc3c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41bbd2
jmp 0x41bd0b
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bce7
cmp dword [ebp - 0x14], 0
je 0x41bce7
mov eax, dword [ebx*4 + 0x43be18]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41bcbf
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41bc88
mov word [esi], cx
jmp 0x41bcbb
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43be18]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x43be18]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43be18]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41bd0b
pop ebx
cmp word [ebp - 4], bx
jne 0x41bcd0
cmp esi, dword [ebp + 0xc]
jne 0x41bcd0
mov word [esi], bx
jmp 0x41bd08
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c5a4
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41bd0b
push 0xd
jmp 0x41bd04
mov ecx, dword [ebx*4 + 0x43be18]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41bd02
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41bd0b
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421dc3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x421e60
push ebx
push esi
call fcn.00421d8c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00420a11
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x421e0d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421e5f
push edi
push eax
call fcn.0041c783
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x421e2d
call fcn.0041956b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421e5e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00420a11
add esp, 0x20
test eax, eax
jne 0x421e4c
push edi
call fcn.0041956b
jmp 0x421e54
push ebx
call fcn.0041956b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x429185
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00429101
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4292fd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4292fd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4292ac
jg 0x4291de
test eax, eax
je 0x4292a2
push 1
push 0x1000
call fcn.004195a5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x429204
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x429299
push 0x8000
push ebx
call fcn.00416a76
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x429230
jg 0x42922b
cmp ecx, 0x1000
jb 0x429230
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041ae06
add esp, 0x10
cmp eax, 0xffffffff
je 0x429275
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42922b
jl 0x42925c
test ecx, ecx
jne 0x42921d
push dword [ebp - 0xc]
push ebx
call fcn.00416a76
push esi
call fcn.0041956b
add esp, 0xc
xor edi, edi
jmp 0x42930e
cmp byte [edi + 0x24], 0
je 0x42928c
cmp dword [edi + 0x20], 5
jne 0x42928c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x429297
mov edi, dword [edi + 0x18]
jmp 0x429299
xor edi, edi
push esi
call fcn.0041956b
pop ecx
jmp 0x42930e
test ecx, ecx
jg 0x42926e
jl 0x4292ac
test eax, eax
jae 0x42926e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c5a4
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4292cf
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42926e
jmp 0x429306
push ebx
call fcn.004225e9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42926e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42930e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42930b
mov edi, dword [edi + 0x18]
jmp 0x42930e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041c5a4
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x429ab0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x429add
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x429add
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401958
cmp byte [esi + ebx - 1], 0xa
je 0x40192c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4070a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x402350
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x10004620
Capabilities:
Decompress data using quicklz
Encode data using xor

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
push ebx
mov ebx, eax
mov al, byte [ebx]
and al, 2
sub al, 2
neg al
push ebp
mov ebp, edx
push edi
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
lea ebx, [ebx + eax*2 + 1]
lea eax, [edx + ecx - 1]
mov dword [esp + 0x14], eax
mov eax, 1
add edx, 0xffffffff
jmp 0x10004658
mov ebx, dword [esp + 0xc]
cmp eax, 1
jne 0x10004662
mov eax, dword [ebx]
add ebx, 4
test al, 1
mov ecx, dword [ebx]
je 0x100046ee
shr eax, 1
mov dword [esp + 0x18], eax
mov eax, ecx
shr eax, 4
and eax, 0xfff
and ecx, 0xf
mov eax, dword [esi + eax*4]
je 0x1000468c
add ecx, 2
add ebx, 2
jmp 0x10004693
movzx ecx, byte [ebx + 2]
add ebx, 3
mov dword [esp + 0xc], ebx
mov ebx, eax
mov dword [esp + 0x10], ecx
xor edi, edi
mov ecx, ebp
sub ebx, ebp
mov eax, dword [ebx + ecx]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
add edi, 3
add ecx, 3
cmp edi, eax
jb 0x100046a3
add ebp, eax
mov ebx, ebp
sub ebx, eax
cmp edx, ebx
jae 0x100046e2
mov edi, dword [edx + 1]
add edx, 1
mov ecx, edi
shr ecx, 0xc
xor ecx, edi
and ecx, 0xfff
cmp edx, ebx
mov dword [esi + ecx*4], edx
mov byte [esi + ecx + 0x4000], 1
jb 0x100046c0
mov eax, dword [esp + 0x18]
lea edx, [ebp - 1]
jmp 0x10004654
mov edi, dword [esp + 0x14]
add edi, 0xfffffff6
cmp ebp, edi
jae 0x10004747
mov edi, eax
and edi, 0xf
mov edi, dword [edi*4 + 0x1006f8e0]
add ebx, edi
mov dword [ebp], ecx
add ebp, edi
mov ecx, edi
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 3]
shr eax, cl
cmp edx, ebx
jae 0x10004654
nop
mov edi, dword [edx + 1]
add edx, 1
mov ecx, edi
shr ecx, 0xc
xor ecx, edi
and ecx, 0xfff
cmp edx, ebx
mov dword [esi + ecx*4], edx
mov byte [esi + ecx + 0x4000], 1
jb 0x10004720
jmp 0x10004654
mov edi, dword [esp + 0x14]
cmp ebp, edi
ja 0x1000476e
nop
cmp eax, 1
jne 0x1000475d
add ebx, 4
mov eax, 0x80000000
mov cl, byte [ebx]
mov byte [ebp], cl
add ebp, 1
add ebx, 1
shr eax, 1
cmp ebp, edi
jbe 0x10004750
add edi, 0xfffffffd
cmp edx, edi
jae 0x10004797
mov eax, dword [edx + 1]
add edx, 1
mov ecx, eax
shr ecx, 0xc
xor ecx, eax
and ecx, 0xfff
cmp edx, edi
mov dword [esi + ecx*4], edx
mov byte [esi + ecx + 0x4000], 1
jb 0x10004775
mov eax, dword [esp + 0x20]
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10013880
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x620], edi
je 0x100138c9
push 1
push esi
call fcn.100119b0
mov eax, dword [esi + 0x5b4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x620]
push edx
push eax
push esi
call ecx
push 0
push esi
mov edi, eax
call fcn.100119b0
add esp, 0x24
mov eax, edi
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x10013909
cmp eax, 2
jg 0x10013909
mov edx, dword [esi + 0x5b0]
push edx
push 1
lea eax, [eax + eax*2 + 0x100620bc]
push 2
push eax
call fcn.1004bdb0
mov ecx, dword [esi + 0x5b0]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call fcn.1004bdb0
add esp, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x100163e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push eax
call fcn.100163b0
add esp, 4
mov dword [esp + 0xc], eax
jmp fcn.10053801

Function at 0x100166c0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
cmp esi, edi
mov ebx, 0x1505
jae 0x100166b2
movzx eax, byte [esi]
push eax
call fcn.1001a460
mov edx, ebx
shl edx, 5
movsx ecx, al
add edx, ebx
xor ecx, edx
add esi, 1
add esp, 4
cmp esi, edi
mov ebx, ecx
jb 0x10016691
pop edi
pop esi
movzx eax, bl
pop ebx
ret
push ecx
push esi
mov esi, eax
test esi, esi
je 0x100166ef
mov ecx, esi
call fcn.100164f0
test eax, eax
jne 0x100166ef
lea eax, [esp + 4]
push eax
call fcn.10016610
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp 0x10016680
xor eax, eax
pop esi
pop ecx
ret

Function at 0x1001d2b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.1004e24f
add esp, 0x18
test eax, eax
je 0x1001d2d3
cmp eax, 0xffffffff
jne 0x1001d2d5
xor eax, eax
ret

Function at 0x10030e80
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
push edi
mov edi, dword [ebx]
je 0x10030eba
push str.Couldnt_set_desired_mode
push edi
call fcn.10013a00
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x10030ed1
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.10013910
add esp, 0xc
cmp ebp, 0x13
jne 0x10030ee6
push ebx
call fcn.10030e10
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x10030ef7
call fcn.1002e350
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x10030f0a
mov eax, ebx
call fcn.10030e60
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x10030f18
mov eax, ebx
call fcn.10030e70
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret