joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43dc60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx*4 + 0x4554b0]
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
push eax
push 1
push 1
lea ecx, [ebp - 5]
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x43dcb5
mov edx, dword [ebp + 0x14]
mov dword [edx], 0xffffffe7
mov byte [ebp - 5], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
jmp 0x43dcc9
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov dl, byte [ebp - 5]
mov byte [ecx], dl
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 4], ecx
jge 0x43dce5
movsx edx, byte [ebp - 5]
cmp edx, 0xa
je 0x43dce5
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x43dc83
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 4], ecx
jne 0x43dd60
movsx edx, byte [ebp - 5]
cmp edx, 0xa
je 0x43dd60
mov eax, dword [ebp + 0x14]
mov dword [eax], 0xffffffd6
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx - 1]
cmp edx, 0xa
je 0x43dd1c
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0xa
jmp 0x43dd25
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0xd
je 0x43dd41
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x43dd5b
cmp dword [ebp - 4], 0
jl 0x43dd5b
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x43dd25
jmp 0x43ddf7
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0xffffffe7
je 0x43dd71
movsx eax, byte [ebp - 5]
cmp eax, 0xa
jne 0x43dd82
cmp dword [ebp - 4], 0
jne 0x43dd82
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0xffffffe9
jmp 0x43ddf7
mov edx, dword [ebp - 4]
sub edx, 1
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0xd
je 0x43ddae
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0xa
jne 0x43ddf7
cmp dword [ebp - 4], 0
jl 0x43ddf7
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0xa
jne 0x43dde3
cmp dword [ebp - 0x10], 0
jne 0x43dde1
mov dword [ebp - 0x10], 1
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 4]
mov byte [eax], 0
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
jmp 0x43ddf5
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x43dd92
mov esp, ebp
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x586008], 0x8088405
inc edx
mov dword [ebx + 0x586008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x56a54a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56a551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x56b8af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x588348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x588348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x587178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56b8b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40288e
pop dword [ebp - 0x44]
mov eax, 0x12fc17b1
add eax, 0xed4410dd
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x46f72771
sub dword [ebp - 0x54], 0xf8a4e226
mov dword [ebp - 0x50], 0x1aec3997
add dword [ebp - 0x50], 0x174712ae
mov dword [ebp - 0x4c], 0x92302b19
add dword [ebp - 0x4c], 0xba1c1915
mov dword [ebp - 0x48], 0xeeacb731
add dword [ebp - 0x48], 0x115348cf
lea eax, [ebp - 0x54]
push eax
mov eax, 0xaf21fb6
sub eax, 0xab1af52
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x28884e8b
add dword [ebp - 0x54], 0x4bea1acb
mov dword [ebp - 0x50], 0x62c524f9
add dword [ebp - 0x50], 0xdea73c7c
mov dword [ebp - 0x4c], 0xad781bc7
add dword [ebp - 0x4c], 0xb5f750a5
mov dword [ebp - 0x48], 0x2d99fda5
sub dword [ebp - 0x48], 0x2d99fda5
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3b9ca
push 0
call eax
mov ecx, 0x5c10
mov ebx, eax
mov edi, 0xd6bc383a
sub edi, 0xd67b383a
add edi, dword [ebp - 0x44]
mov edx, 0xf1a8a455
add edx, 0x8a72933c
sub dword [ebp - 8], edx
mov esi, dword [edi]
add dword [ebp - 4], edx
xor esi, edx
mov dword [ebx], esi
xor dword [ebp - 0x24], esi
add ebx, 0xb3b42f24
add ebx, 0x4c4bd0e0
add edi, 4
loop 0x4029a5
add eax, 0xb9ceb4f
add eax, 0xf46477c4
mov ebx, eax
add eax, 0x5e33e878
add eax, 0xa1cc178d
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x100013df
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x10011db8
call fcn.10011ae4
sub esp, 0x19c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
lea ecx, [esi + 4]
call fcn.10001000
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [ebp - 4], ebx
call fcn.10001000
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 1
call fcn.10001000
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 2
call fcn.10001000
push str.CreateEventA
push str.kernel32.dll
mov byte [ebp - 4], 3
mov dword [esi], 0x10013328
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 0x1a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push 1
push ebx
call edi
or dword [esi + 0xa8], 0xffffffff
mov dword [esi + 0xac], eax
lea eax, [ebp - 0x14]
push 5
push eax
lea eax, [esi + 0xb0]
push eax
mov byte [esi + 0xb5], bl
mov byte [ebp - 0x14], 0x48
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x61
mov byte [ebp - 0x11], 0x72
mov byte [ebp - 0x10], 0x74
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100015ac
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__strnset]
push 1
push 0x52
mov esi, ecx
push str.xesetEvent
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push eax
push str.kernel32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
push 0x57
push str.ASAIoctl
mov dword [ebp - 8], eax
call edi
add esp, 0xc
push eax
push str.WS2_32.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, esi
mov dword [ebp - 0xc], eax
call fcn.10001d3e
push dword [esi + 0xac]
call dword [ebp - 8]
xor ebx, ebx
mov byte [esi + 0xb5], bl
mov eax, dword [0x10018be0]
cmp eax, ebx
je 0x10001632
cmp eax, 4
je 0x10001632
cmp eax, 5
jne 0x100016c6
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0xa8], eax
je 0x100016c6
cmp dword [0x10018be0], ebx
je 0x10001658
push 0x10018be4
jmp 0x1000165b
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
je 0x100016c6
cmp dword [0x10018be0], ebx
mov word [ebp - 0x28], 2
je 0x1000167e
mov ax, word [0x10016130]
push eax
jmp 0x10001681
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x26], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0xa8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x100016c6
cmp dword [0x10018be0], 5
jne 0x100016ca
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.10001745
test al, al
jne 0x100016ca
xor al, al
jmp 0x1000173e
push 1
lea eax, [ebp - 1]
pop edi
mov byte [ebp - 1], 1
push edi
push eax
push 8
push 0xffff
push dword [esi + 0xa8]
call fcn.1000138f
add esp, 0x14
test eax, eax
jne 0x1000171c
push ebx
lea eax, [ebp - 1]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x98000004
push dword [esi + 0xa8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0x1770
mov dword [ebp - 0x10], 0x3e8
call dword [ebp - 0xc]
push edi
push ebx
push ebx
push esi
push 0x10001a4d
push ebx
push ebx
mov byte [esi + 0xb5], 1
call fcn.1000b2c0
mov dword [esi + 0xa4], eax
add esp, 0x1c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10001f05
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 1
push 0x53
mov ebx, ecx
push str.Wleep
call dword [sym.imp.MSVCRT.dll__strnset]
add esp, 0xc
push eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
mov dword [ebp + 8], eax
jb 0x10001f9b
and dword [ebp - 8], 0
push 0
push dword [ebp + 0x10]
push esi
push dword [ebx + 0xa8]
call edi
test eax, eax
jg 0x10001f6f
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xf
jl 0x10001f54
cmp dword [ebp - 8], 0xf
je 0x10001fd1
add dword [ebp - 4], eax
add esi, dword [ebp + 0x10]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0xa
call dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sub dword [ebp + 8], eax
cmp dword [ebp + 8], eax
jae 0x10001f50
cmp dword [ebp + 8], 0
jle 0x10001fc9
and dword [ebp + 0x10], 0
push 0
push dword [ebp + 8]
push esi
push dword [ebx + 0xa8]
call edi
test eax, eax
jg 0x10001fc0
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0xf
jl 0x10001fa5
cmp dword [ebp + 0x10], 0xf
je 0x10001fd1
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x10001fd4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10002362
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013348
push 0x10011b5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push str.CharNextA
push str.USER32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x100024b7
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x1000241e
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x1000241e
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100023fc
cmp al, 0x5c
je 0x100023fc
push esi
call dword [ebp - 0x28]
mov esi, eax
jmp 0x100023e7
cmp byte [esi], 0
je 0x10002405
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10002417
cmp al, 0x5c
je 0x10002417
push esi
call dword [ebp - 0x28]
mov esi, eax
jmp 0x10002402
cmp byte [esi], 0
je 0x1000243d
jmp 0x10002439
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x1000243d
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x1000243d
cmp al, 0x5c
jne 0x1000243d
inc esi
mov dword [ebp - 0x1c], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x10002497
cmp al, 0x5c
jne 0x1000248c
and byte [esi], 0
push edi
call fcn.10002175
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x10002475
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10002489
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jmp 0x1000247a
and eax, 0x10
cmp al, 0x10
je 0x10002489
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov dword [ebp - 4], ebx
jmp 0x100024bb
mov byte [esi], 0x5c
push esi
call dword [ebp - 0x28]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10002440
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov al, 1
jmp 0x100024bd
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100024ce
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x790
push ebx
push esi
push edi
push 1
push 0x47
mov dword [ebp - 0x24], ecx
push str.zetDiskFreeSpaceExA
call dword [sym.imp.MSVCRT.dll__strnset]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
mov ebx, str.kernel32.dll
push eax
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 1
push 0x47
push str.RetLogicalDriveStringsA
mov dword [ebp - 0x2c], eax
call dword [sym.imp.MSVCRT.dll__strnset]
add esp, 0xc
push eax
push ebx
call esi
push eax
call edi
push str.GetVolumeInformationA
push ebx
mov dword [ebp - 4], eax
call esi
push eax
call edi
push str.lstrlenA
push ebx
mov dword [ebp - 0x28], eax
call esi
push eax
call edi
lea eax, [ebp - 0x230]
mov byte [ebp - 0x790], 0x67
push eax
push pe_nt_image_headers32
call dword [ebp - 4]
xor ebx, ebx
push 1
cmp byte [ebp - 0x230], bl
lea edi, [ebp - 0x230]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
pop esi
je 0x100026c0
push 0x104
lea eax, [ebp - 0x130]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x130]
push 0x104
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [ebp - 0x28]
push 0x410
lea eax, [ebp - 0x390]
push 0x160
push eax
push 0x80
push edi
call dword [0x10018ee8]
lea eax, [ebp - 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 4], eax
mov al, byte [edi]
cmp al, 0x41
je 0x10002626
cmp al, 0x42
je 0x10002626
lea eax, [ebp - 0x20]
push ebx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [ebp - 0x2c]
test eax, eax
je 0x10002626
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
push 0x14
pop ecx
call fcn.10011b70
mov edx, dword [ebp - 0x14]
push 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
pop ecx
call fcn.10011b70
mov dword [ebp - 0xc], eax
jmp 0x1000262c
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov al, byte [edi]
push edi
mov byte [ebp + esi - 0x790], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [ebp + esi - 0x78f], al
lea eax, [ebp - 0x10]
push 4
push eax
lea eax, [ebp + esi - 0x78e]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0xc]
push 4
push eax
lea eax, [ebp + esi - 0x78a]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 8]
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp + esi - 0x786]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 4]
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 8]
add eax, esi
lea eax, [ebp + eax - 0x786]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add esp, 0x30
add eax, ecx
push edi
lea esi, [esi + eax + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi + eax + 1], bl
lea edi, [edi + eax + 1]
jne 0x1000257e
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x790]
push esi
push eax
call fcn.10007376
pop edi
pop esi
pop ebx
leave
ret