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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
xor esi, esi
push dword [ebp + 0x1c]
inc edi
mov dword [ebp - 8], esi
push edi
call fcn.0055f0da
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x5535e6
xor eax, eax
jmp 0x5536e2
mov eax, dword [ebp - 4]
mov ecx, SysReAllocString
push 0x40
push 0x5204f1
mov dword [eax + 0x2a4], ecx
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov dword [eax + 0x2a8], ecx
call fcn.00554660
push esi
push eax
call fcn.00520510
add esp, 0x14
test eax, eax
je 0x553621
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.0055f267
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00554642
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00555d32
add esp, 0x28
test eax, eax
jne 0x553658
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
cmp dword [ebp - 8], esi
jne 0x553699
mov eax, dword [ebp - 4]
push dword [eax + 0xb4]
push dword [ebp - 4]
call fcn.0055f238
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x553694
mov dword [ebp - 8], edi
cmp dword [ebp - 8], esi
je 0x5536c9
mov eax, dword [ebp - 4]
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.0055f1a7
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 4]
mov dword [eax + 0xb0], esi
call fcn.0055f161
add esp, 0x14
jmp 0x5535df
push esi
push esi
push esi
push dword [ebp - 4]
call fcn.0055f029
push dword [ebp - 4]
call fcn.00553788
mov eax, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
leave
ret
Function at 0x555ae1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x555b17
push edi
mov edi, 0x10c
cmp dword [ebp + 0xc], edi
jae 0x555b0a
push eax
call fcn.0055f14d
push 2
call fcn.0055f0c6
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call fcn.0051e6d0
add esp, 0xc
pop edi
pop esi
pop ebp
ret
Function at 0x556f59
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
xor esi, esi
push dword [ebp + 0x1c]
inc edi
mov dword [ebp - 8], esi
push edi
call fcn.0055f0da
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x556f86
xor eax, eax
jmp 0x55712a
mov eax, dword [ebp - 4]
mov ecx, SysReAllocString
push 0x40
push 0x5204f1
mov dword [eax + 0x2a4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2a8], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2ac], esi
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov dword [eax + 0x2b0], esi
call fcn.00554660
push esi
push eax
call fcn.00520510
add esp, 0x14
test eax, eax
je 0x556fd3
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.0055f267
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00554642
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.00555d32
add esp, 0x28
test eax, eax
jne 0x55700a
mov dword [ebp - 8], edi
cmp dword [ebp - 8], esi
jne 0x557046
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 4]
push dword [eax + 0xb4]
push dword [ebp - 4]
call fcn.0055f238
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x557046
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], 0x555e22
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x9c], fcn.00555e71
mov eax, dword [ebp - 4]
mov dword [eax + 0xa0], ecx
cmp dword [ebp - 8], esi
jne 0x5570c6
mov eax, dword [ebp - 4]
push 0x38
add eax, 0x78
push str.1.2.5
push eax
call fcn.0056678e
add esp, 0xc
cmp eax, 0xfffffffa
je 0x5570af
cmp eax, 0xfffffffc
je 0x5570a8
cmp eax, 0xfffffffe
je 0x5570a1
test eax, eax
je 0x5570c1
push str.Unknown_zlib_error
jmp 0x5570b4
push str.zlib_stream_error
jmp 0x5570b4
push str.zlib_memory_error
jmp 0x5570b4
push str.zlib_version_error
push dword [ebp - 4]
call fcn.0055467c
pop ecx
mov dword [ebp - 8], edi
pop ecx
cmp dword [ebp - 8], esi
je 0x5570f6
mov eax, dword [ebp - 4]
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.0055f1a7
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 4]
mov dword [eax + 0xb0], esi
call fcn.0055f161
add esp, 0x14
jmp 0x556f7f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push esi
push esi
mov eax, dword [eax + 0xb0]
mov dword [ecx + 0x84], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push dword [ebp - 4]
mov eax, dword [eax + 0xb4]
mov dword [ecx + 0x88], eax
call fcn.0055c057
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
leave
ret
Function at 0x564dfb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x2c]
mov edx, dword [edi + 0x74]
mov dword [ebp - 0xc], ebx
mov eax, dword [edi + 0x2c]
mov esi, dword [edi + 0x3c]
add eax, 0xfffffefa
sub esi, dword [edi + 0x6c]
add eax, ebx
sub esi, edx
mov dword [ebp - 8], esi
cmp dword [edi + 0x6c], eax
jb 0x564ea4
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.0051e150
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
mov esi, ecx
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
movzx ecx, bx
movzx eax, word [edi]
mov edx, eax
mov dword [ebp - 4], ecx
sub eax, ecx
xor ecx, ecx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x564e52
mov edi, dword [ebp + 8]
mov esi, ebx
mov eax, dword [edi + 0x40]
lea edi, [eax + ebx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx eax, word [edi]
mov edx, eax
sub eax, dword [ebp - 4]
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x564e7f
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
add esi, ebx
mov ebx, dword [edi]
mov eax, dword [ebx + 4]
test eax, eax
je 0x564fc8
mov edx, dword [edi + 0x6c]
mov ecx, dword [edi + 0x74]
add edx, ecx
add edx, dword [edi + 0x38]
cmp eax, esi
mov dword [ebp - 4], edx
cmovbe esi, eax
test esi, esi
je 0x564f12
sub eax, esi
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x564ee5
push esi
push dword [ebx]
push dword [ebx + 0x30]
call fcn.005684ab
jmp 0x564ef5
cmp eax, 2
jne 0x564efe
push esi
push dword [ebx]
push dword [ebx + 0x30]
call fcn.0056696b
mov edx, dword [ebp - 4]
add esp, 0xc
mov dword [ebx + 0x30], eax
push esi
push dword [ebx]
push edx
call fcn.0051e150
add dword [ebx], esi
add esp, 0xc
add dword [ebx + 8], esi
mov ecx, dword [edi + 0x74]
lea edx, [ecx + esi]
mov dword [ebp - 8], edx
mov dword [edi + 0x74], edx
cmp edx, 3
jb 0x564f42
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
mov edx, dword [ebp - 8]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp edx, 0x106
jae 0x564f5a
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x564f5a
mov ebx, dword [ebp - 0xc]
jmp 0x564e10
mov ecx, dword [edi + 0x16c0]
mov esi, dword [edi + 0x3c]
cmp ecx, esi
jae 0x564fc8
mov ebx, dword [edi + 0x6c]
add ebx, edx
cmp ecx, ebx
jae 0x564f98
mov eax, 0x102
sub esi, ebx
cmp esi, eax
cmova esi, eax
mov eax, dword [edi + 0x38]
push esi
add eax, ebx
push 0
push eax
call fcn.0051e6d0
lea eax, [esi + ebx]
add esp, 0xc
mov dword [edi + 0x16c0], eax
jmp 0x564fc8
lea eax, [ebx + 0x102]
cmp ecx, eax
jae 0x564fc8
sub ebx, ecx
sub esi, ecx
lea eax, [ebx + 0x102]
cmp eax, esi
cmovbe esi, eax
mov eax, dword [edi + 0x38]
push esi
add eax, ecx
push 0
push eax
call fcn.0051e6d0
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x56696b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x566978
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0056697e
Function at 0x10001400
Capabilities:
Contain obfuscated stackstrings
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x1002085c
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x10028ce0]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
mov eax, dword [0x10028ce0]
xor eax, esp
push eax
lea eax, [esp + 0x1cc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 4]
mov dword [esp + 0x1a0], esi
mov dword [esi], vtable.CClientSocket.0
call fcn.10001000
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1d4], 0
call fcn.10001000
lea ecx, [esi + 0x54]
mov byte [esp + 0x1d4], 1
call fcn.10001000
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1d4], 2
call fcn.10001000
mov al, 0x72
mov byte [esp + 0x1ba], al
mov byte [esp + 0x1a9], al
mov al, 0x74
mov cl, 0x6e
mov byte [esp + 0x1ac], al
mov byte [esp + 0x1b2], al
mov bl, 0x65
lea eax, [esp + 0x1a8]
mov byte [esp + 0x1bb], cl
mov byte [esp + 0x1b1], cl
push eax
lea ecx, [esp + 0x1bc]
push ecx
mov byte [esp + 0x1dc], 3
mov byte [esp + 0x1c0], 0x6b
mov byte [esp + 0x1c1], bl
mov byte [esp + 0x1c4], bl
mov byte [esp + 0x1c5], 0x6c
mov byte [esp + 0x1c6], 0x33
mov byte [esp + 0x1c7], 0x32
mov byte [esp + 0x1c8], 0x2e
mov byte [esp + 0x1c9], 0x64
mov byte [esp + 0x1ca], 0x6c
mov byte [esp + 0x1cb], 0x6c
mov byte [esp + 0x1cc], 0
mov byte [esp + 0x1b0], 0x43
mov byte [esp + 0x1b2], bl
mov byte [esp + 0x1b3], 0x61
mov byte [esp + 0x1b5], bl
mov byte [esp + 0x1b6], 0x45
mov byte [esp + 0x1b7], 0x76
mov byte [esp + 0x1b8], bl
mov byte [esp + 0x1bb], 0x41
mov byte [esp + 0x1bc], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [esp + 0x10]
push edx
push 0x202
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x30
call fcn.10011a91
add esp, 4
push 0
push 0
push 1
push 0
call edi
push 0x30
mov dword [esi + 0xac], eax
call fcn.10011a91
mov byte [esp + 0x1a4], 0x4c
mov byte [esp + 0x1a5], bl
mov byte [esp + 0x1a6], 0x76
mov byte [esp + 0x1a7], bl
mov ecx, dword [esp + 0x1a4]
add esp, 4
mov byte [esi + 0xb5], 0
mov dword [esi + 0xa8], 0xffffffff
mov al, 0x6c
mov dword [esi + 0xb0], ecx
mov byte [esi + 0xb4], al
mov eax, esi
mov ecx, dword [esp + 0x1cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.10012866
add esp, 0x1c8
ret
Function at 0x10001640
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, 1
xor ecx, ecx
push 0x30
mov word [esp + 8], ax
mov word [esp + 0xa], cx
call fcn.10011a91
mov eax, dword [esi + 0xa8]
add esp, 4
push 4
lea edx, [esp + 8]
push edx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x30
call fcn.10011a91
mov ecx, dword [esi + 0xa8]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x30
call fcn.10011a91
add esp, 4
push 0
lea edx, [esi + 0xb5]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0x30
call fcn.10011a91
mov eax, dword [esi + 0xa8]
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x30
call fcn.10011a91
mov ecx, dword [esi + 0xac]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x30
call fcn.10011a91
add esp, 4
mov dword [esi + 0xa8], 0xffffffff
pop esi
pop ecx
ret

Function at 0x10001700
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], edi
cmp ebx, esi
jb 0x100017a3
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop
mov dword [esp + 0x24], 0
jmp 0x10001740
push 0x100213f8
call fcn.10011fa5
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xa8]
add esp, 4
push 0
push esi
push ebp
push ecx
call dword [sym.imp.WS2_32.dll_send]
push 0
mov edi, eax
call ebx
test edi, edi
jg 0x1000177a
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0xf
mov dword [esp + 0x24], eax
jl 0x10001740
cmp dword [esp + 0x24], 0xf
je 0x100017e0
add dword [esp + 0x1c], edi
push 0
add ebp, esi
call ebx
push 0xa
call ebx
mov eax, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0x10], eax
cmp eax, esi
jae 0x10001730
mov ebx, dword [esp + 0x20]
mov edi, eax
test edi, edi
jle 0x100017d8
xor esi, esi
lea esp, [esp]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0xa8]
push 0
push edi
push ebp
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x100017cf
inc esi
cmp esi, 0xf
jl 0x100017b0
cmp esi, 0xf
je 0x100017e0
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100017e3
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x10001e40
Capabilities:
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x24
mov eax, dword [0x10028ce0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov esi, ecx
call fcn.10001640
push 0x100213f8
call fcn.10011fa5
mov eax, dword [esi + 0xac]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x100213f8
mov byte [esi + 0xb5], 0
call fcn.10011fa5
add esp, 4
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov dword [esi + 0xa8], eax
call ebp
cmp dword [esi + 0xa8], 0xffffffff
jne 0x10001ec5
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.10012866
add esp, 0x24
ret 8
push 0x30
call fcn.10011a91
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
push 0x30
mov edi, eax
call fcn.10011a91
add esp, 4
test edi, edi
je 0x10001eaf
mov ecx, 2
push 0x100213f8
mov word [esp + 0x20], cx
call fcn.10011fa5
mov edx, dword [esp + 0x3c]
add esp, 4
push edx
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x22], ax
call ebp
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x20], edx
call edi
push str.connect
push str.WS2_32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esi + 0xa8]
push 0x10
lea ecx, [esp + 0x20]
push ecx
push edx
call eax
cmp eax, 0xffffffff
je 0x10001eaf
call edi
push 0x30
mov byte [esp + 0x13], 1
call fcn.10011a91
mov ecx, dword [esi + 0xa8]
add esp, 4
push 1
lea eax, [esp + 0x13]
push eax
push 8
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001fd6
push 0x30
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0xea60
mov dword [esp + 0x1c], 0x1388
call fcn.10011a91
mov ecx, dword [esi + 0xa8]
add esp, 4
push 0
push 0
lea edx, [esp + 0x17]
push edx
push 0
push 0
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x98000004
push ecx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 0x30
call fcn.10011a91
add esp, 4
push 1
push 0
push 0
push esi
push 0x10001d10
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.10009d40
mov ecx, dword [esp + 0x48]
add esp, 0x1c
pop edi
mov dword [esi + 0xa4], eax
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.10012866
add esp, 0x24
ret 8
Function at 0x10002070
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10024b58
push 0x10012da0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10028ce0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 0x30
call fcn.10011a91
add esp, 4
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.10012cd3
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x100021e8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x10002132
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x10002132
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x1000210d
cmp al, 0x5c
je 0x1000210d
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x100020f5
cmp byte [esi], 0
je 0x10002116
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x1000212b
cmp al, 0x5c
je 0x1000212b
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x10002113
cmp byte [esi], 0
je 0x10002151
jmp 0x1000214d
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x10002151
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10002151
cmp al, 0x5c
jne 0x10002151
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [esi]
test al, al
je 0x100021ad
cmp al, 0x5c
jne 0x1000219f
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10002198
push 0
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000219c
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000219c
push 0
call ebx
push edi
jmp 0x100021e0
test al, 0x10
je 0x10002195
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10002157
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.10012bf6
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.10012bf6
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002290
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x78c
mov eax, dword [0x10028ce0]
xor eax, esp
mov dword [esp + 0x788], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x298]
push eax
push 0x100
mov dword [esp + 0x34], ecx
mov byte [esp + 0x3a0], 0x67
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor ebx, ebx
push str.Shell32.dll
lea esi, [esp + 0x29c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push str.SHGetFileInfoA
push edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x30], eax
lea ebp, [ebx + 1]
cmp byte [esp + 0x298], bl
je 0x10002458
jmp 0x10002322
xor ebx, ebx
push 0x104
lea ecx, [esp + 0x198]
push ebx
push ecx
call fcn.10012980
add esp, 0xc
push 0x104
lea edx, [esp + 0x198]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
push 0x160
lea eax, [esp + 0x3c]
push eax
push 0x80
push esi
call dword [esp + 0x44]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x144]
push ecx
call ebx
lea edx, [esp + 0x194]
mov edi, eax
push edx
inc edi
call ebx
mov ebx, eax
mov al, byte [esi]
inc ebx
cmp al, 0x41
je 0x100023cf
cmp al, 0x42
je 0x100023cf
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x100023cf
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
shrd eax, edx, 0x14
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
shrd eax, ecx, 0x14
shr edx, 0x14
shr ecx, 0x14
jmp 0x100023d5
xor eax, eax
mov dword [esp + 0x10], eax
mov dl, byte [esi]
push esi
mov dword [esp + 0x18], eax
mov byte [esp + ebp + 0x39c], dl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [esp + 0x14]
mov byte [esp + ebp + 0x399], al
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0x148]
mov dword [esp + ebp + 0x39e], eax
push edx
lea eax, [esp + ebp + 0x3aa]
push eax
mov dword [esp + ebp + 0x3aa], ecx
call fcn.10011c40
push ebx
lea ecx, [esp + 0x1a4]
lea edx, [edi + ebp]
push ecx
lea eax, [esp + edx + 0x3b6]
push eax
call fcn.10011c40
add esp, 0x18
add ebx, edi
push esi
lea ebp, [ebx + ebp + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x10002320
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebp
lea ecx, [esp + 0x39c]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.10006740
mov ecx, dword [esp + 0x798]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10012866
add esp, 0x78c
ret
Function at 0x10002490
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x10028ce0]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebp
push esi
mov esi, dword [esp + 0x26c]
push edi
mov ebp, 0x2800
push 0x30
mov dword [esp + 0x1c], ecx
mov dword [ecx + 0x2c], 0
mov dword [esp + 0x18], ebp
call fcn.10011a91
add esp, 4
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov al, 0x2a
mov byte [esp + 0x15f], al
mov byte [esp + 0x161], al
push esi
lea eax, [esp + 0x160]
push eax
lea ecx, [esp + 0x16c]
push ecx
mov byte [esp + 0x168], 0x25
mov byte [esp + 0x169], 0x73
mov byte [esp + 0x16a], 0x5c
mov byte [esp + 0x16c], 0x2e
mov byte [esp + 0x16e], 0
call fcn.10012f2c
push 0x30
call fcn.10011a91
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
push 0x30
mov dword [esp + 0x14], esi
call fcn.10011a91
add esp, 4
cmp esi, 0xffffffff
jne 0x10002571
push 1
lea ecx, [esp + 0x13]
push ecx
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x17], 0x68
call fcn.10006740
jmp 0x100026a2
mov byte [edi], 0x68
mov esi, 1
lea esp, [esp]
lea edx, [ebp - 0x208]
cmp esi, edx
jbe 0x100025a8
add ebp, 0x208
push 0
mov dword [esp + 0x18], ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x42
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edi, eax
mov ecx, 0x10021494
lea eax, [esp + 0x48]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100025d1
test dl, dl
je 0x100025cd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100025d1
add eax, 2
add ecx, 2
test dl, dl
jne 0x100025b1
xor eax, eax
jmp 0x100025d6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10002669
mov ecx, 0x10021490
lea eax, [esp + 0x48]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002607
test dl, dl
je 0x10002603
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002607
add eax, 2
add ecx, 2
test dl, dl
jne 0x100025e7
xor eax, eax
jmp 0x1000260c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10002669
mov al, byte [esp + 0x1c]
and al, 0x10
lea ecx, [esp + 0x48]
mov byte [esi + edi], al
push ecx
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
push ebp
lea edx, [esp + 0x4c]
push edx
lea eax, [esi + edi]
push eax
call fcn.10011c40
add esi, ebp
mov ebp, dword [esp + 0x20]
mov byte [esi + edi], 0
mov ecx, dword [esp + 0x44]
mov dword [esi + edi + 1], ecx
mov edx, dword [esp + 0x48]
inc esi
mov dword [esi + edi + 4], edx
mov eax, dword [esp + 0x3c]
add esi, 8
mov dword [esi + edi], eax
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov dword [esi + edi + 4], ecx
add esi, 8
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10002580
mov ecx, dword [esp + 0x18]
push esi
push edi
call fcn.10006740
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
mov ecx, dword [esp + 0x268]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10012866
add esp, 0x260
ret 4