joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4543dd
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xb
push esi
push edi
ja case.default.0x45428e
jmp dword [ebx*4 + 0x4543fc]
mov eax, dword [ebp + 0x10]
mov word [eax + 0x18], 1
xor eax, eax
jmp 0x4543f6
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
mov ecx, dword [ebp + 0x10]
cdq
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 4], edx
inc eax
mov word [ecx + 0x18], 4
jmp 0x4543f6
mov ecx, dword [ebp + 8]
movsx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
push 2
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
pop eax
jmp 0x4542b7
mov ecx, dword [ebp + 8]
movsx eax, byte [ecx]
movzx edx, byte [ecx + 1]
movzx ecx, byte [ecx + 2]
shl eax, 8
or eax, edx
push 3
jmp 0x4542ce
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 2]
xor ecx, ecx
mov ch, byte [eax]
push 4
mov cl, byte [eax + 1]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, edx
shl ecx, 8
jmp 0x4542d1
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 4]
xor eax, eax
mov ah, byte [ecx + 2]
xor edi, edi
push 6
mov al, byte [ecx + 3]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 5]
shl eax, 8
or eax, edx
mov esi, eax
movsx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
or eax, ecx
xor ecx, ecx
cdq
or esi, ecx
mov ecx, dword [ebp + 0x10]
or edi, eax
mov dword [ecx], esi
mov dword [ecx + 4], edi
jmp 0x4542dc
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 2]
xor eax, eax
mov ah, byte [ecx]
xor esi, esi
mov al, byte [ecx + 1]
shl eax, 8
or eax, edx
movzx edx, byte [ecx + 3]
shl eax, 8
or eax, edx
cdq
movzx edx, byte [ecx + 6]
mov edi, eax
xor eax, eax
mov ah, byte [ecx + 4]
mov al, byte [ecx + 5]
movzx ecx, byte [ecx + 7]
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
xor ecx, ecx
or esi, eax
mov eax, dword [ebp + 0x10]
or edi, ecx
cmp ebx, 6
jne 0x4543aa
mov dword [eax], esi
mov dword [eax + 4], edi
mov word [eax + 0x18], 4
jmp 0x4543b6
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov word [eax + 0x18], 8
push 8
pop eax
jmp 0x4543f6
mov ecx, dword [ebp + 0x10]
add ebx, 0xfffffff8
xor eax, eax
mov dword [ecx], ebx
mov dword [ecx + 4], eax
jmp 0x4542b7
mov ecx, dword [ebp + 0x10]
and dword [ecx + 0x1c], 0
mov edx, dword [ebp + 8]
lea eax, [ebx - 0xc]
and bl, 1
shr eax, 1
neg bl
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
sbb ebx, ebx
and ebx, 0xfffffff2
add ebx, 0x110
mov word [ecx + 0x18], bx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x464e4e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00449bd4
test eax, eax
jne 0x464f0d
mov eax, dword [ebp + 0xc]
push ebx
push edi
push dword [eax + 4]
mov edi, dword [ebp + 8]
push dword [eax + 8]
push edi
call fcn.0044aeaf
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x464f0b
cmp dword [ebx + 0x18], 0
je 0x464e05
push str.Cannot_add_a_column_to_a_view
push edi
call fcn.004495c9
pop ecx
pop ecx
jmp 0x464f0b
push esi
push dword [ebx + 0x3c]
push dword [edi]
call fcn.0044938b
push 1
push 0x40
mov dword [ebp - 0xc], eax
call fcn.00449c2b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x464f0a
xor ecx, ecx
inc ecx
mov dword [edi + 0xa4], esi
mov dword [esi + 0x24], ecx
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
dec eax
cdq
and edx, 7
add eax, edx
sar eax, 3
lea eax, [eax*8 + 8]
imul eax, eax, 0x14
push ecx
push eax
call fcn.00449c2b
mov dword [esi + 8], eax
push dword [ebx]
call fcn.00449c54
mov ecx, dword [esi + 8]
add esp, 0xc
test ecx, ecx
mov dword [esi], eax
je 0x464f0a
test eax, eax
je 0x464f0a
mov eax, dword [esi + 4]
imul eax, eax, 0x14
push eax
push dword [ebx + 8]
push ecx
call sub.MSVCR80.dll_memcpy
xor eax, eax
add esp, 0xc
cmp dword [esi + 4], eax
mov dword [ebp - 8], eax
jle 0x464ec5
mov dword [ebp - 4], eax
mov edi, dword [esi + 8]
add edi, dword [ebp - 4]
push dword [edi]
call fcn.00449c54
add dword [ebp - 4], 0x14
mov dword [edi], eax
xor eax, eax
inc dword [ebp - 8]
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 4]
pop ecx
jl 0x464e98
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edi]
imul ecx, ecx, 0x18
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 0x14]
push dword [ebp - 0xc]
mov dword [esi + 0x3c], eax
mov eax, dword [ebx + 0x38]
push 0
push edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x24], 1
call fcn.0044c485
push edi
call fcn.0045c2b9
add esp, 0x10
test eax, eax
je 0x464f0a
push dword [ebp - 0xc]
push eax
push dword [edi]
call fcn.0044b716
add esp, 0xc
pop esi
pop edi
pop ebx
push dword [ebp + 0xc]
call fcn.0044c238
pop ecx
leave
ret
Function at 0x46d580
Capabilities:
Connect pipe
Create pipe

Disassembly:
cmp dword [esp + 0xc], 0
push ebp
mov ebp, dword [esp + 8]
jne 0x46d530
test dl, dl
je 0x46d562
xor eax, eax
cmp dword [esi + 0xc], eax
jle 0x46d54f
mov ecx, dword [esi + 0x14]
lea ebx, [ebx]
cmp ebp, dword [ecx]
je 0x46d58c
add eax, 1
add ecx, 0xc
cmp eax, dword [esi + 0xc]
jl 0x46d540
test dl, dl
je 0x46d562
cmp dword [esi + 8], 0
jne 0x46d562
cmp byte [ebp + 9], 0
jne 0x46d562
mov dword [esi + 8], ebp
mov eax, dword [esi + 0x10]
cmp dword [esi + 0xc], eax
push edi
jne 0x46d5b4
test eax, eax
jne 0x46d593
mov dword [esi + 0x10], 8
mov eax, dword [ebx + 0xc]
push 0x60
call eax
add esp, 4
test eax, eax
mov dword [esi + 0x14], eax
jne 0x46d5b4
pop edi
xor eax, eax
pop ebp
ret
mov eax, 1
pop ebp
ret
mov edx, dword [esi + 0x14]
lea edi, [eax + eax]
mov eax, dword [ebx + 0x10]
lea ecx, [edi + edi*2]
add ecx, ecx
add ecx, ecx
push ecx
push edx
call eax
add esp, 8
test eax, eax
je 0x46d587
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x14]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 8], ecx
mov cl, byte [esp + 0x10]
test cl, cl
mov dword [eax], ebp
mov byte [eax + 4], cl
jne 0x46d5d8
mov byte [ebp + 8], 1
mov eax, 1
add dword [esi + 0xc], eax
pop edi
pop ebp
ret
Function at 0x480f5a
Capabilities:
Terminate process

Disassembly:
add dword [esi + 4], eax
mov eax, dword [esi + 4]
push edi
push 0x3c
pop ecx
js 0x480ebe
cmp eax, ecx
jl 0x480ed6
cdq
mov edi, ecx
idiv edi
add dword [esi + 8], eax
test edx, edx
mov dword [esi + 4], edx
jge 0x480ed6
add edx, 0x3c
dec dword [esi + 8]
mov dword [esi + 4], edx
mov eax, dword [esi + 8]
test eax, eax
jl 0x480ee1
cmp eax, ecx
jl 0x480ef7
cdq
idiv ecx
add dword [esi + 0xc], eax
test edx, edx
mov dword [esi + 8], edx
jge 0x480ef7
add edx, 0x3c
dec dword [esi + 0xc]
mov dword [esi + 8], edx
mov eax, dword [esi + 0xc]
test eax, eax
jge 0x480f60
add eax, 0x18
dec dword [esi + 0x10]
dec word [esi + 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x10]
cmp eax, 1
jge 0x480f55
dec dword [esi + 0x14]
jns 0x480f3b
dec word [esi + 0x18]
movzx ecx, word [esi + 0x18]
mov dword [esi + 0x14], 0xb
call fcn.00480e78
neg eax
sbb eax, eax
neg eax
add eax, 0x16c
mov word [esi + 0x1c], ax
mov cx, word [esi + 0x18]
call fcn.00480e78
imul eax, eax, 0xc
mov ecx, dword [esi + 0x14]
movsx eax, byte [eax + ecx + 0x497a58]
mov dword [esi + 0x10], eax
dec byte [esi + 0x1a]
jns 0x480fbf
mov byte [esi + 0x1a], 6
pop edi
ret
cmp eax, 0x17
jle 0x480fbf
mov edi, dword [esi + 0x14]
push ebx
movzx ebx, word [esi + 0x18]
add eax, 0xffffffe8
inc dword [esi + 0x10]
inc word [esi + 0x1c]
mov ecx, ebx
mov dword [esi + 0xc], eax
call fcn.00480e78
imul eax, eax, 0xc
movsx eax, byte [eax + edi + 0x497a58]
cmp dword [esi + 0x10], eax
jle 0x480fb1
lea eax, [edi + 1]
cmp eax, 0xb
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], eax
jle 0x480fb1
and dword [esi + 0x14], 0
inc ebx
and word [esi + 0x1c], 0
mov word [esi + 0x18], bx
inc byte [esi + 0x1a]
cmp byte [esi + 0x1a], 6
pop ebx
jle 0x480fbf
mov byte [esi + 0x1a], 0
pop edi
ret
Function at 0x401442
Capabilities:
Hide graphical window
Terminate process

Disassembly:
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0xff
lea eax, [ebp - 8]
push eax
call dword [sym.imp.COMCTL32.DLL_InitCommonControlsEx]
mov dword [ebp - 0x38], 0x30
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], 0x401069
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebp - 0x24], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadIconA]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 6
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], str.controls_test
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.DLL_RegisterClassExA]
push 0
push dword [ebp - 0x24]
push 0
push 0
push dword [0x4020a1]
push dword [0x40209d]
push 0x80000000
push 0x80000000
push 0xcf0000
push str.This_is_a_test_controls_window__32_bit_
push str.controls_test
push 0
call dword [sym.imp.USER32.DLL_CreateWindowExA]
mov dword [ebp - 0x3c], eax
push 0xa
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.DLL_ShowWindow]
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.DLL_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.DLL_GetMessageA]
test eax, eax
jle 0x401546
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.DLL_TranslateMessage]
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.DLL_DispatchMessageA]
jmp 0x40151c
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x405a83
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405aa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405aa9
xor al, al
jmp 0x405ac9
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00414490
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x40cdf0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x41a510
call fcn.00413954
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x41b694
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x41b748
push 4
mov ebx, 0x41b684
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.004032a8
mov dword [esi + 0x3c], 0x41b7f8
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.004032a8
mov dword [edi], 0x41b800
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b99b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.0040c3f8
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b99b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.0040c3f8
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b99b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.0040c3f8
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b99b
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.0040c3f8
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.0040c3f8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x413220
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call fcn.004148be
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x413248
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413257
mov eax, 1
ret 4

Function at 0x43b63b
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
sub eax, 0x8f1fea12
call fcn.0043b670
add eax, 0xcebc7b2b
or eax, ecx
xor dword [esi], edx
add ecx, 1
add eax, 0xdd0ab14
inc esi
add eax, ecx
inc ecx
inc eax
cmp esi, ebx
jne fcn.0043b63b
inc eax
ret
Function at 0x41812d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x418174
cmp ebx, 0x20
je 0x418174
cmp ebx, 0xffffffe0
je 0x418174
jne 0x41817d
add eax, 1
cmp esi, eax
je 0x41818a
jne 0x418159
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x41818e
jne 0x418155
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x4181a2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x4181e7
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x4181ed
add eax, 4
pop esi
dec esi
push esi
jne 0x4181cf
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x477960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51a450
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.0050e397
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.0047d290
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x4779b4
jmp dword [ecx*4 + 0x477b1c]
mov al, byte [esi]
test al, al
je 0x4779e2
cmp al, 0x20
je 0x4779ce
cmp al, 0xa1
jne 0x4779e2
cmp byte [esi + 1], al
jne 0x4779e2
test al, 0x80
je 0x4779da
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4779e2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4779c1
test ecx, ecx
je case.default.0x4779b4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x4779b4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x477a28
cmp dl, 0xa1
jne 0x477a1c
cmp byte [eax + 1], 0xa1
jne 0x477a1c
test ecx, ecx
jne 0x477a14
mov edi, eax
mov ecx, 1
inc eax
jmp 0x477a3c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x477a56
jmp 0x477a3c
cmp dl, 0x20
jne 0x477a3a
test ecx, ecx
jne 0x477a33
mov edi, eax
mov ecx, 1
jmp 0x477a3c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x4779fc
cmp ecx, 1
jne case.default.0x4779b4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x4779b4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x4779b4
mov al, byte [esi]
test al, al
je 0x477aae
test al, 0x80
mov byte [esp + 0x3c], al
je 0x477a94
mov cl, byte [esi + 1]
test cl, cl
je 0x477aae
cmp al, 0xa1
jne 0x477a84
cmp cl, al
je 0x477a91
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.0047d560
inc esi
jmp 0x477aa6
cmp al, 0x20
je 0x477aa6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0047d5a0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x477a6d
push 0
lea ecx, [esp + 0x14]
call fcn.0047d5a0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00486b70
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x477ae1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x740180
call fcn.0047d490
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0050e329
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x479240
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, 0x8de118
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00479200
add esp, 8
mov byte [esp + 8], al
or esi, 0xffffffff
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4792ea
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
push ecx
call eax
test eax, eax
je 0x47934b
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4792cc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jmp 0x4792d4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xa
call fcn.004f5720
mov edx, dword [esp + 0x28]
pop edi
pop esi
mov dword [edx], eax
add esp, 0x1c
ret
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x47933f
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x30]
je 0x47931d
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push 0x400
imul edx, dword [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], eax
add esp, 0x1c
ret
mov edx, dword [esp + 0x28]
pop edi
mov dword [edx], esi
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
pop esi
add esp, 0x1c
ret
Function at 0x47a450
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x51a5a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x8f6658]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.00479f20
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x47a4f2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x47a5ab
mov edx, dword [esi + 8]
push edx
call fcn.004858f0
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x47a542
cmp eax, 0x80000301
jne 0x47a510
mov eax, dword [esi]
jmp 0x47a51d
push 0
push esi
push 0x7d1
call fcn.0048afc0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x47a5a0
jmp 0x47a59a
cmp eax, 0x80000004
jne 0x47a571
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x47a5a0
jmp 0x47a59a
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x47a5a0
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x47a5a0
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0050e329
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4812f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51a94b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0050e09e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x481372
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0050bf8d
mov eax, dword [eax]
push 0x8e1be8
push eax
call fcn.004f4b64
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0050e329
test bl, bl
je 0x481372
push 0x8e1be8
lea ecx, [esp + 0xc]
call fcn.0050e6b9
push 0x8e1bf4
lea ecx, [esp + 0xc]
call fcn.0050e6b9
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4813ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0050e329
jmp 0x481479
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x481432
lea edx, [esp + 0x7c]
push 0x8e1bf0
push edx
call fcn.004f4b64
add esp, 8
test eax, eax
je 0x481432
lea eax, [esp + 0x7c]
push 0x8e1bec
push eax
call fcn.004f4b64
add esp, 8
test eax, eax
je 0x481432
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4813c2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0050e329
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x481c70
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x481cd2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc