joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cb88
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, 0x44fc1c
mov esi, 0x44fd48
mov edi, 0x44fd44
xor eax, eax
push ebp
push 0x44cc66
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x44cc7c
call fcn.00403ea8
mov dword [ebx], 0x128
xor edx, edx
mov eax, 0xf
call fcn.0044c97c
mov dword [edi], eax
mov edx, ebx
mov eax, dword [edi]
call fcn.0044c99c
mov dword [esi], eax
jmp 0x44cc3e
lea eax, [ebp - 0xc]
lea edx, [ebx + 0x24]
mov ecx, 0x104
call fcn.00404080
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00408050
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040421c
jne 0x44cc33
push 0
mov eax, dword [ebx + 8]
push eax
push 0xffffffffffffffff
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
test eax, eax
jne 0x44cc33
push 0
push 0x44cc90
push 0x44cc98
push 0
call sub.user32.dll_MessageBoxA_1
mov edx, ebx
mov eax, dword [edi]
call fcn.0044c9bc
mov dword [esi], eax
cmp dword [esi], 0
jne 0x44cbdf
mov eax, dword [edi]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44cc6d
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403e34
ret
Function at 0x432220
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section..code
lea edi, [esi - 0x2e000]
push edi
or ebp, 0xffffffff
jmp 0x432242
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x432249
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x432238
mov eax, 1
add ebx, ebx
jne 0x43225b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x432250
jne 0x43226c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x432250
xor ecx, ecx
sub eax, 3
jb 0x432280
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4322f2
mov ebp, eax
add ebx, ebx
jne 0x43228b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x432298
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4322bc
inc ecx
add ebx, ebx
jne 0x4322a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43229d
jne 0x4322b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43229d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4322dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4322cd
jmp 0x43223e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4322dc
add edi, ecx
jmp 0x43223e
pop esi
mov edi, esi
mov ecx, 0x156
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4322fa
cmp byte [edi], 2
jne 0x4322fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x4322ff
lea edi, [esi + 0x30000]
mov eax, dword [edi]
or eax, eax
je 0x432377
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x55f10]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x55f9c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43232c
mov ecx, edi
jns 0x43235b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x55fa0]
or eax, eax
je 0x432371
mov dword [ebx], eax
add ebx, 4
jmp 0x432349
call dword [esi + 0x55fa4]
popal
jmp 0x40467c
Function at 0x40a23c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
xor ebp, ebp
xor edi, edi
lea eax, [ebx + 0x10]
call fcn.00403dcc
cmp ebp, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40a2a5
mov eax, dword [ebx + 0x10]
mov edx, 0x40a3d8
call fcn.00404190
jne 0x40a274
lea eax, [ebx + 0x10]
call fcn.00403dcc
jmp 0x40a2ad
mov eax, dword [ebx + 0x10]
mov edx, 0x40a3e4
call fcn.00404190
jne 0x40a290
lea eax, [ebx + 0x10]
mov edx, 0x40a3d8
call fcn.00403e20
cmp dword [ebx + 0x10], 0
jne 0x40a2ad
lea eax, [ebx + 0x10]
mov edx, 0x40a3e4
call fcn.00403e20
jmp 0x40a2ad
lea eax, [ebx + 0x10]
call fcn.00403dcc
mov eax, ebx
call fcn.0040a08c
mov eax, dword [0x40b158]
inc dword [eax]
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov word [esp], 2
push 0x8b
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a307
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x1bd
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a34a
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
mov word [esp], 2
push 0x75d7
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov eax, dword [ebx + 0x10]
call fcn.00404244
push eax
call sub.wsock32.dll_inet_addr
mov dword [esp + 4], eax
push 0x10
lea eax, [esp + 4]
push eax
push esi
call sub.wsock32.dll_connect
inc eax
je 0x40a38d
or edi, 0xffffffff
jmp 0x40a394
mov eax, dword [0x40b170]
inc dword [eax]
test edi, edi
je 0x40a3b7
push esi
call sub.wsock32.dll_closesocket
lea eax, [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, 0x40a3f0
call fcn.00404090
mov eax, ebx
call fcn.00409f64
mov ebp, eax
push 0x200
call sub.kernel32.dll_Sleep
jmp 0x40a251

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

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x3f7e6036
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x7d7208fc
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401126
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x40119c
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push 0x4652d2
push ecx
call fcn.0044de15
add esp, 8
xor esi, esi
test eax, eax
je 0x401229
mov edi, eax
push 2
push 0
push eax
call fcn.0044c24d
add esp, 0xc
push edi
call fcn.0044c59c
add esp, 4
test eax, eax
js 0x401220
mov ebp, eax
push edi
call fcn.0044f85c
add esp, 4
lea eax, [ebp + 1]
push eax
call dword [0x471054]
add esp, 4
test eax, eax
je 0x401220
mov ebx, eax
push edi
push ebp
push 1
push eax
call fcn.0044ef46
add esp, 0x10
test eax, eax
je 0x40120e
mov ebp, eax
push edi
call fcn.0044ea93
add esp, 4
test eax, eax
je 0x401230
push edi
call fcn.0044e93e
add esp, 4
push ebx
call dword [0x471050]
jmp 0x401226
push edi
call fcn.0044e93e
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.0044e93e
add esp, 4
mov byte [ebx + ebp], 0
mov esi, ebx
jmp 0x401229

Function at 0x40236d
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push edi
push esi
test edx, edx
je 0x402395
mov edi, 0x1505
xor esi, esi
movzx ebx, byte [ecx + esi]
test ebx, ebx
je 0x40239c
mov eax, edi
shl eax, 5
add eax, edi
add eax, ebx
inc esi
mov edi, eax
cmp edx, esi
jne 0x40237b
jmp 0x40239e
mov eax, 0x1505
jmp 0x40239e
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x40c060
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, 0x465628
rep movsd dword es:[edi], dword [esi]
cmp ebp, 0x40
jb 0x40c0e0
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 0x40c08b
mov ecx, esp
lea edx, [esp + 0x14]
call fcn.0040c17a
inc ebx
lea edx, [esi + edi]
cmp ebx, ebp
jne 0x40c087
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 0x40c114
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 0x40c0f8
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 0x40c14c
mov ecx, esp
lea edi, [esp + 0x14]
mov edx, edi
call fcn.0040c17a
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.0040c17a
xor eax, eax
mov ecx, dword [esp + eax*4]
mov dword [esi + eax*4], ecx
inc eax
cmp eax, 5
jne 0x40c166
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4138cc
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4139cb
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x4139c4
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 0x413975
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 0x413915
mov edx, ebp
and edx, 0x1ff8
add ebx, esi
mov esi, dword [esp]
mov eax, ebp
sub eax, edx
jbe 0x41398f
xor edx, edx
movzx esi, byte [ebx + edx]
add edi, esi
add ecx, edi
inc edx
cmp eax, edx
jne 0x41397d
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 0x413909
shl ecx, 0x10
or ecx, edi
jmp 0x4139ce
xor ecx, ecx
inc ecx
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4139d8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
not ebx
cmp ecx, 4
jb 0x413a4d
mov eax, 0xff
mov esi, ebx
shr esi, 8
movzx edi, byte [edx]
and ebx, eax
xor ebx, edi
xor esi, dword [ebx*4 + 0x465830]
mov edi, esi
shr edi, 8
movzx ebx, byte [edx + 1]
and esi, eax
xor esi, ebx
xor edi, dword [esi*4 + 0x465830]
mov esi, edi
shr esi, 8
movzx ebx, byte [edx + 2]
and edi, eax
xor edi, ebx
xor esi, dword [edi*4 + 0x465830]
mov ebx, esi
shr ebx, 8
movzx edi, byte [edx + 3]
and esi, eax
xor esi, edi
xor ebx, dword [esi*4 + 0x465830]
add edx, 4
add ecx, 0xfffffffc
cmp ecx, 3
ja 0x4139f3
test ecx, ecx
je 0x413a71
xor esi, esi
mov eax, ebx
shr eax, 8
movzx edi, byte [edx + esi]
movzx ebx, bl
xor ebx, edi
xor eax, dword [ebx*4 + 0x465830]
inc esi
mov ebx, eax
cmp ecx, esi
jne 0x413a55
jmp 0x413a73
mov eax, ebx
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x4245dd
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 0x467300
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [esi]
add esp, 4
pop esi
ret

Function at 0x4258fd
Capabilities:
Get hostname

Disassembly:
push edi
push esi
push eax
mov eax, 0x400
mov edi, esp
mov dword [edi], eax
push eax
call fcn.0044f4f4
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 0x42f86e
Capabilities:
Create process on windows
Encode data using base64
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push eax
mov dword [esp], 0x6077240
mov eax, 0x6077240
cmp eax, 0x6077240
je 0x42f88b
cmp eax, 0x39d9b857
jne 0x42f87b
jmp 0x42f897
call fcn.0040a998
mov eax, 0x39d9b857
jmp 0x42f87b
mov dword [esp], eax
call fcn.0041fec7
pop eax
jmp fcn.004280c4
Function at 0x4418af
Capabilities:
Parse pe header

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

Function at 0x44b619
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.0044b870
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44b791
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44b791
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44b740
jg 0x44b672
test eax, eax
je 0x44b736
push 1
push 0x1000
call fcn.00457350
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44b698
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x44b72d
push 0x8000
push ebx
call fcn.0044da1c
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 0x44b6c4
jg 0x44b6bf
cmp ecx, 0x1000
jb 0x44b6c4
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004573e4
add esp, 0x10
cmp eax, 0xffffffff
je 0x44b709
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 0x44b6bf
jl 0x44b6f0
test ecx, ecx
jne 0x44b6b1
push dword [ebp - 0xc]
push ebx
call fcn.0044da1c
push esi
call fcn.00455244
add esp, 0xc
xor edi, edi
jmp 0x44b7a2
cmp byte [edi + 0x24], 0
je 0x44b720
cmp dword [edi + 0x20], 5
jne 0x44b720
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x44b72b
mov edi, dword [edi + 0x18]
jmp 0x44b72d
xor edi, edi
push esi
call fcn.00455244
pop ecx
jmp 0x44b7a2
test ecx, ecx
jg 0x44b702
jl 0x44b740
test eax, eax
jae 0x44b702
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00457eda
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44b763
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x44b702
jmp 0x44b79a
push ebx
call fcn.00456f1c
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44b702
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 0x44b7a2
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x44b79f
mov edi, dword [edi + 0x18]
jmp 0x44b7a2
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00457eda
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44c65e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00441290
mov eax, dword [0x4717c0]
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.0044c226
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44c6a0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44c7fc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00459800
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 + 0x472c10]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00457f43
mov ecx, dword [esi*4 + 0x472c10]
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 0x44c7f5
cmp eax, dword [edi + ecx + 0x24]
jne 0x44c7f5
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 0x44c7f5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00457f43
add esp, 0x14
test edx, edx
jl 0x44c7f5
jg 0x44c76b
test eax, eax
jb 0x44c7f5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x44c7f5
jl 0x44c785
cmp dword [ebp - 0x1008], eax
ja 0x44c7f5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44c7a3
test ebx, ebx
je 0x44c7dc
cmp ecx, edi
jae 0x44c7dc
mov al, byte [ecx]
cmp al, 0xd
jne 0x44c7bd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44c7c9
cmp byte [ecx + 1], 0xa
jne 0x44c7c9
inc ecx
jmp 0x44c7c9
movzx eax, al
movsx eax, byte [eax + 0x471f40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44c7a3
cmp edx, ebx
jne 0x44c7a3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44c7fa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00441d08
leave
ret
Function at 0x44e34d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4717c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x468374
push esi
call fcn.00458728
pop ecx
pop ecx
test eax, eax
jne 0x44e37b
xor al, al
jmp 0x44e3f8
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0044e0de
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x44e3b5
push dword [ebp - 0x210]
call fcn.0044f149
xor al, al
jmp 0x44e3f6
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x44e3bb
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x44e3db
push edx
call fcn.0044e29e
pop ecx
test al, al
je 0x44e3a6
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x44e3e9
mov bl, 1
push dword [ebp - 0x210]
call fcn.0044f149
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00441d08
leave
ret

Function at 0x4539a0
Capabilities:
Parse pe header

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

Function at 0x453d1d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x469e64
push str.FlsAlloc
push 0x1e
call fcn.00454000
mov esi, eax
add esp, 0x10
test esi, esi
je 0x453d51
push dword [ebp + 8]
mov ecx, esi
call dword [0x46f3fc]
call esi
jmp 0x453d57
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x453d9b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x469e88
push str.FlsGetValue
push 0x20
call fcn.00454000
mov esi, eax
add esp, 0x10
test esi, esi
je 0x453dd2
push dword [ebp + 8]
mov ecx, esi
call dword [0x46f3fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x458fdc
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4717c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x459027
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00459152
test al, al
jne 0x459021
sub edx, 2
cmp edx, edi
jne 0x459007
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x459049
lea eax, [edi + 2]
cmp edx, eax
je 0x459049
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00458f28
add esp, 0x10
jmp 0x459143
push esi
lea ecx, [ebp - 0x255]
call fcn.00459152
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45908c
push dword [ebp - 0x25c]
jmp 0x459039
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4590c9
cmp word [ebp - 0x226], 0
je 0x4590ea
cmp word [ebp - 0x226], ax
jne 0x4590c9
cmp word [ebp - 0x224], 0
je 0x4590ea
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00458f28
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x459136
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4590a3
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x45911e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x459143
push 0x459176
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00461a80
add esp, 0x10
jmp 0x459113
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00441d08
leave
ret