joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415a90
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438f86
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x44d06c]
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 esi, ecx
mov edi, dword [ebp + 0x38]
push 0x410
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.0041d1c0
add esp, 0xc
mov edx, esi
cmp dword [esi + 0x14], 8
jb 0x415aea
mov edx, dword [esi]
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
push edx
cmovae ecx, dword [ebp + 0x20]
lea edx, [ebp - 0x420]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x208
cmovae eax, dword [ebp + 8]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x415be7
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x424], esp
push eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 7
push 0x447bd8
mov word [ecx], ax
call fcn.004016e0
mov byte [ebp - 4], 2
lea edx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
cmovae edx, dword [ebp + 0x20]
sub esp, 0x18
mov edi, esp
mov dword [ebp - 0x428], esp
mov ecx, edx
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
lea ebx, [ecx + 2]
mov word [edi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415b74
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004016e0
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae ecx, dword [ebp + 8]
sub esp, 0x18
mov edi, esp
mov edx, ecx
xor eax, eax
mov dword [edi + 0x10], 0
lea ebx, [edx + 2]
mov dword [edi + 0x14], 7
mov word [edi], ax
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x415bc0
sub edx, ebx
sar edx, 1
push edx
push ecx
mov ecx, edi
call fcn.004016e0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00415cc0
xor bl, bl
jmp 0x415c10
lea edx, [ebp - 0x420]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x415bf0
sub edx, esi
lea eax, [ebp - 0x420]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.004016e0
mov bl, 1
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x415c46
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415c3c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415cb0
push edx
push ecx
call fcn.0041ae44
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x415c90
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x415c86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415cb5
push edx
push ecx
call fcn.0041ae44
add esp, 8
mov al, bl
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.0041ae03
mov esp, ebp
pop ebp
ret 0x34
call fcn.0041fc7c
call fcn.0041fc7c
int3
Function at 0x418520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4185b7
push 0
lea ecx, [ebp - 8]
mov byte [ebp - 0xc], 0
push ecx
push 8
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], 0
push ecx
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4185b7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebp - 0x14], 0xa11ce
jne 0x4185b7
push ebx
push dword [ebp - 0x10]
mov ecx, ebx
call fcn.00408ff0
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push dword [ebx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4185b7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae03
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae03
mov esp, ebp
pop ebp
ret 4

Function at 0x4185d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439288
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x44d06c]
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 esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
lea ebx, [ebp + 8]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
cmovae ebx, ecx
cmp dword [esi], 0xffffffff
lea edi, [eax*2 + 2]
jne 0x41862c
xor bl, bl
jmp 0x4186bf
lea eax, [edi + 8]
push eax
mov dword [ebp - 0x18], eax
call fcn.0041b3a8
mov esi, eax
add esp, 4
test esi, esi
jne 0x418645
xor bl, bl
jmp 0x4186b9
mov dword [esi], 0xa11ce
lea eax, [esi + 8]
mov dword [esi + 4], edi
test edi, edi
je 0x418685
test eax, eax
je 0x418675
push edi
test ebx, ebx
je 0x41866a
push ebx
push eax
call fcn.0041c6c0
add esp, 0xc
jmp 0x418685
push 0
push eax
call fcn.0041d1c0
add esp, 0xc
call fcn.00426544
mov dword [eax], 0x16
call fcn.0041fc6c
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call fcn.0041b10f
add esp, 4
test edi, edi
setne bl
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x4186ef
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4186e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41870f
push edx
push ecx
call fcn.0041ae44
add esp, 8
mov al, bl
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.0041ae03
mov esp, ebp
pop ebp
ret 0x18
call fcn.0041fc7c
int3
Function at 0x418720
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 1
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
mov edi, ecx
push eax
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
cmp dword [edi + 0x14], 8
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0xc
jb 0x41877c
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 1
push 0xff
push 0
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4187e0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4187e0
push 0
push 0
push esi
push 0x418800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4187e0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00418720
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae03
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0041ae03
mov esp, ebp
pop ebp
ret

Function at 0x418900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x44d06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
cmp dword [eax + 0x18], 0xffffffff
push edi
mov dword [ebp - 0x10], eax
je 0x4189ca
mov edi, dword [ebp + 0xc]
lea eax, [edi + 8]
push eax
mov dword [ebp - 0xc], eax
call fcn.0041b3a8
mov esi, eax
add esp, 4
test esi, esi
je 0x4189ca
mov dword [esi], 0xa11ce
lea eax, [esi + 8]
mov dword [esi + 4], edi
test edi, edi
je 0x418981
test eax, eax
je 0x418971
push edi
test ebx, ebx
je 0x418966
push ebx
push eax
call fcn.0041c6c0
add esp, 0xc
jmp 0x418981
push 0
push eax
call fcn.0041d1c0
add esp, 0xc
call fcn.00426544
mov dword [eax], 0x16
call fcn.0041fc6c
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], 0
push esi
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx + 0x18]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call fcn.0041b10f
add esp, 4
test edi, edi
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae03
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae03
mov esp, ebp
pop ebp
ret 8
Function at 0x419c72
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x44d06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x419c97
xor eax, eax
jmp 0x419cf3
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x419cc4
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x419cc4
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x419d78
cmp dword [edi + 0x4c], 0
je 0x419ced
mov ecx, edi
call fcn.004198c4
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x419d03
push dword [edi + 0x4c]
push ebx
call fcn.00419368
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x419cf2
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041ae03
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x43a1e4]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x419ced
cmp eax, 1
jle 0x419d4b
cmp eax, 3
jne 0x419ced
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x419cdf
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x419d68
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.00428093
add esp, 0x10
cmp esi, eax
jne 0x419ced
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x419ced
mov ax, bx
jmp 0x419cf2

Function at 0x42d2dd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042cf84

Function at 0x42d2e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042d10e
Function at 0x401450
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push 0x46f2d0
push ecx
call fcn.00459ab1
add esp, 8
xor esi, esi
test eax, eax
je 0x4014dd
mov edi, eax
push 2
push 0
push eax
call fcn.00457ee9
add esp, 0xc
push edi
call fcn.00458238
add esp, 4
test eax, eax
js 0x4014d4
mov ebp, eax
push edi
call fcn.0045b856
add esp, 4
lea eax, [ebp + 1]
push eax
call dword [0x47c054]
add esp, 4
test eax, eax
je 0x4014d4
mov ebx, eax
push edi
push ebp
push 1
push eax
call fcn.0045aed9
add esp, 0x10
test eax, eax
je 0x4014c2
mov ebp, eax
push edi
call fcn.0045a833
add esp, 4
test eax, eax
je 0x4014e4
push edi
call fcn.0045a6ae
add esp, 4
push ebx
call dword [0x47c050]
jmp 0x4014da
push edi
call fcn.0045a6ae
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.0045a6ae
add esp, 4
mov byte [ebx + ebp], 0
mov esi, ebx
jmp 0x4014dd

Function at 0x4027cb
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
test edx, edx
je 0x4027f3
mov edi, 0x1505
xor esi, esi
movzx ebx, byte [ecx + esi]
test ebx, ebx
je 0x4027fa
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp edx, esi
jne 0x4027d9
jmp 0x4027fc
mov eax, 0x1505
jmp 0x4027fc
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x40c454
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
mov edi, esp
mov ecx, 5
mov esi, 0x46f6c0
rep movsd dword es:[edi], dword [esi]
cmp ebp, 0x40
jb 0x40c4d4
shr ebp, 6
xor ebx, ebx
mov esi, edx
xor edi, edi
movzx eax, byte [esi + edi]
mov dword [esp + edi + 0x14], eax
movzx ecx, byte [esi + edi + 1]
shl ecx, 8
or ecx, eax
mov dword [esp + edi + 0x14], ecx
movzx eax, byte [esi + edi + 2]
shl eax, 0x10
or eax, ecx
mov dword [esp + edi + 0x14], eax
movzx ecx, byte [esi + edi + 3]
shl ecx, 0x18
or ecx, eax
mov dword [esp + edi + 0x14], ecx
add edi, 4
cmp edi, 0x40
jne 0x40c47f
mov ecx, esp
lea edx, [esp + 0x14]
call fcn.0040c56e
inc ebx
lea edx, [esi + edi]
cmp ebx, ebp
jne 0x40c47b
add esi, edi
mov edx, esi
mov ebp, dword [esp + 0x6c]
xor ebx, ebx
lea edi, [esp + 0x14]
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov esi, ebp
and esi, 0x3f
je 0x40c508
xor eax, eax
movzx edi, byte [edx + eax]
mov ecx, ebx
and cl, 0x18
shl edi, cl
mov ecx, eax
and ecx, 0xfffffffc
xor dword [esp + ecx + 0x14], edi
inc eax
add ebx, 8
cmp esi, eax
jne 0x40c4ec
lea ebx, [ebp*8]
mov ecx, ebx
and cl, 0x18
or cl, 7
xor eax, eax
inc eax
shl eax, cl
mov ecx, ebp
and ecx, 0x3c
xor dword [esp + ecx + 0x14], eax
cmp esi, 0x38
jb 0x40c540
mov ecx, esp
lea edi, [esp + 0x14]
mov edx, edi
call fcn.0040c56e
xor eax, eax
mov ecx, 0xe
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x70]
lea edx, [esp + 0x14]
mov dword [edx + 0x38], ebx
shr ebp, 0x1d
mov dword [edx + 0x3c], ebp
mov ecx, esp
call fcn.0040c56e
xor eax, eax
mov ecx, dword [esp + eax*4]
mov dword [esi + eax*4], ecx
inc eax
cmp eax, 5
jne 0x40c55a
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x413d64
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x413e63
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x413e5c
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebp, esi
sub ebp, eax
xor edx, edx
cmp ebp, 8
mov dword [esp], esi
jb 0x413e0d
xor esi, esi
mov eax, esi
movzx edx, byte [ebx + esi]
add edx, edi
add ecx, edx
movzx esi, byte [ebx + esi + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 2]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 3]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 6]
add edx, esi
add ecx, edx
movzx edi, byte [ebx + eax + 7]
add edi, edx
add ecx, edi
lea esi, [eax + 8]
add eax, 0xf
cmp eax, ebp
jb 0x413dad
mov edx, ebp
and edx, 0x1ff8
add ebx, esi
mov esi, dword [esp]
mov eax, ebp
sub eax, edx
jbe 0x413e27
xor edx, edx
movzx esi, byte [ebx + edx]
add edi, esi
add ecx, edi
inc edx
cmp eax, edx
jne 0x413e15
add ebx, eax
mov esi, dword [esp]
mov eax, edi
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov eax, ecx
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, ebp
mov ebp, 0x15b0
jne 0x413da1
shl ecx, 0x10
or ecx, edi
jmp 0x413e66
xor ecx, ecx
inc ecx
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41eae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
mov eax, 0x2040
call fcn.004481e0
cmp dword [ebp + 8], 0
je 0x41eb85
mov esi, dword [ebp + 0xc]
lea ebx, [esp + 0x3c]
push 0x2000
push 0
push ebx
call fcn.0044b390
add esp, 0xc
mov edx, esp
xor eax, eax
mov ecx, 0xe
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.0041e101
mov edi, 0xfffffffd
test eax, eax
jne 0x41eb9c
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edi, dword [ebp + 8]
mov dword [edi + 0x4e010], eax
mov dword [edi + 0x4e014], ecx
mov ecx, esi
mov edx, 0x471032
call fcn.004192ed
test eax, eax
je 0x41eb8a
mov esi, eax
push esi
push 0x2000
push 1
push ebx
call fcn.0045aed9
add esp, 0x10
test eax, eax
je 0x41eb91
push eax
push ebx
push edi
call fcn.0041ea52
add esp, 0xc
test eax, eax
jns 0x41eb5a
mov edi, 0xfffffff8
jmp 0x41eb93
xor edi, edi
dec edi
jmp 0x41eb9c
mov edi, 0xfffffff0
jmp 0x41eb9c
xor edi, edi
push esi
call fcn.0045a6ae
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4270d7
Capabilities:
Create directory

Disassembly:
push edi
push esi
call fcn.00426cd8
mov esi, eax
push eax
call fcn.00459d5e
add esp, 4
mov edi, eax
push esi
call fcn.0045b0dc
add esp, 4
mov eax, edi
pop esi
pop edi
ret
Function at 0x428e45
Capabilities:
Get disk information

Disassembly:
push esi
push eax
xor eax, eax
mov esi, esp
mov dword [esi], eax
push eax
push eax
push eax
push eax
push esi
push eax
push eax
push 0x4716ba
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [esi]
add esp, 4
pop esi
ret

Function at 0x4299ab
Capabilities:
Get hostname

Disassembly:
push edi
push esi
push eax
mov eax, 0x400
mov edi, esp
mov dword [edi], eax
push eax
call fcn.0045b484
add esp, 4
mov esi, eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, esi
add esp, 4
pop esi
pop edi
ret

Function at 0x436d42
Capabilities:
Check http status code
Create process on windows
Decompress data using ucl
Get disk information
Parse pe header
Query environment variable
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
call fcn.0040ab5c
mov dword [esp], 0xd84d8ba6
mov eax, 0xd84d8ba6
cmp eax, 0xfceca296
jle 0x436d9e
cmp eax, 0xd84d8ba6
jne 0x436db8
mov eax, 0xfceca297
jmp 0x436d56
cmp eax, 0x99b67fbc
jne 0x436d56
mov dword [esp], eax
add esp, 8
jmp fcn.0042cd48
Function at 0x4487f9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x448838
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x448838
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x448838
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x448838
cmp dword [ecx + 0x74], 0xe
jbe 0x448838
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4572b5
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.0045750c
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x45742d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x45742d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4573dc
jg 0x45730e
test eax, eax
je 0x4573d2
push 1
push 0x1000
call fcn.0046028d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x457334
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4573c9
push 0x8000
push ebx
call fcn.004596b8
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 0x457360
jg 0x45735b
cmp ecx, 0x1000
jb 0x457360
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00461531
add esp, 0x10
cmp eax, 0xffffffff
je 0x4573a5
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 0x45735b
jl 0x45738c
test ecx, ecx
jne 0x45734d
push dword [ebp - 0xc]
push ebx
call fcn.004596b8
push esi
call fcn.0045e814
add esp, 0xc
xor edi, edi
jmp 0x45743e
cmp byte [edi + 0x24], 0
je 0x4573bc
cmp dword [edi + 0x20], 5
jne 0x4573bc
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4573c7
mov edi, dword [edi + 0x18]
jmp 0x4573c9
xor edi, edi
push esi
call fcn.0045e814
pop ecx
jmp 0x45743e
test ecx, ecx
jg 0x45739e
jl 0x4573dc
test eax, eax
jae 0x45739e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00462027
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4573ff
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x45739e
jmp 0x457436
push ebx
call fcn.004610c6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x45739e
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 0x45743e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x45743b
mov edi, dword [edi + 0x18]
jmp 0x45743e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00462027
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4582fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004481e0
mov eax, dword [0x47eab0]
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.00457ec2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x45833c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x458498
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00463930
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 + 0x47ff18]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00462090
mov ecx, dword [esi*4 + 0x47ff18]
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 0x458491
cmp eax, dword [edi + ecx + 0x24]
jne 0x458491
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 0x458491
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00462090
add esp, 0x14
test edx, edx
jl 0x458491
jg 0x458407
test eax, eax
jb 0x458491
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x458491
jl 0x458421
cmp dword [ebp - 0x1008], eax
ja 0x458491
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x45843f
test ebx, ebx
je 0x458478
cmp ecx, edi
jae 0x458478
mov al, byte [ecx]
cmp al, 0xd
jne 0x458459
lea eax, [edi - 1]
cmp ecx, eax
jae 0x458465
cmp byte [ecx + 1], 0xa
jne 0x458465
inc ecx
jmp 0x458465
movzx eax, al
movsx eax, byte [eax + 0x47f230]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x45843f
cmp edx, ebx
jne 0x45843f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x458496
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00448c48
leave
ret