joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100126a1
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
add dword [ebp + 8], 2
push esi
push edi
lea ecx, [ebp - 8]
call fcn.10046123
lea ecx, [ebp - 4]
call fcn.10046123
push 0x2c
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edi, eax
cmp edi, esi
je 0x10012783
push ebx
push 1
push esi
lea eax, [ebp - 8]
mov word [edi], si
push eax
push dword [ebp + 8]
mov esi, 0x100e3108
mov ecx, esi
call fcn.10058f7c
mov ebx, dword [ebp - 8]
push 1
push 0
lea eax, [ebp - 4]
push eax
add edi, 2
push edi
mov ecx, esi
mov dword [ebp + 8], ebx
call fcn.10058f7c
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
je 0x1001273a
lea ecx, [ebp + 8]
call fcn.1000f804
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push dword [ebp + 8]
push 1
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
jmp 0x10012776
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
add eax, eax
push eax
push ebx
push 1
push str.RegisteredOwner
mov edi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push edi
mov ebx, 0x80000002
push ebx
call fcn.10040c59
add esp, 0x18
push dword [ebp - 0xc]
call esi
shl eax, 1
push eax
push dword [ebp - 0xc]
push 1
push str.RegisteredOrganization
push edi
push ebx
call fcn.10040c59
add esp, 0x18
xor esi, esi
pop ebx
jmp 0x10012786
xor esi, esi
inc esi
lea ecx, [ebp - 4]
call fcn.1003f96c
lea ecx, [ebp - 8]
call fcn.1003f96c
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x10012cc0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jge 0x10012cd1
call fcn.10012c65
mov edi, eax
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [esp + 0xc]
jg 0x10012ce5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
dec eax
js 0x10012cf1
inc eax
xor word [esi], di
inc esi
inc esi
dec eax
jne 0x10012ce9
mov eax, edi
pop edi
shl eax, 0x10
pop esi
ret

Function at 0x10012e84
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x100e2fb0], 0
jne 0x10012ea7
push 0
push dword [0x100e2fc0]
push 0x10012d83
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x100e2fb0], eax
ret
Function at 0x10013018
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
jne 0x10013033
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
push esi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x22c], 0x22c
mov dword [ebp - 0x228], ebx
mov ecx, 0x89
lea edi, [ebp - 0x224]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x10013082
cmp dword [ebp - 0x224], esi
je 0x10013088
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001306d
jmp 0x1001308e
mov ebx, dword [ebp - 0x214]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
dec dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0
mov esi, ebx
jg 0x10013033
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x10013330
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push edi
je 0x10013354
cmp dword [ebp + 0xc], 2
jne 0x10013383
mov edi, dword [ebp + 0x14]
push 0x104
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x10013357
mov edi, dword [ebp + 0x10]
cmp dword [ebp + 0x18], 0
je 0x10013367
push dword [ebp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 2]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push esi
mov ecx, 0x100e3108
call fcn.100457c2
pop esi
pop edi
pop ebp
ret

Function at 0x10013386
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0xc11
lea ecx, [ebp - 4]
call fcn.10046141
push 0x822
push 0
push dword [ebp - 4]
call fcn.100b40f0
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 8]
lea esi, [eax + 0x410]
and word [esi], 0
add esp, 0xc
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], eax
lea edi, [ebx + 2]
je 0x100133cd
mov edi, dword [ebp + 0xc]
and dword [ebp - 8], 0
push 0x104
push esi
push edi
mov dword [ebp - 0xc], 0x410
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [esi], 0
je 0x100133f9
push esi
push ebx
mov ecx, 0x100e3108
call fcn.100457c2
jmp 0x1001342c
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
call fcn.10040bf5
add esp, 0x18
test eax, eax
jne 0x1001342c
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
push dword [ebp - 8]
push ebx
call fcn.10013330
add esp, 0x14
lea ecx, [ebp - 4]
call fcn.1003f96c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10013439
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x411
lea ecx, [ebp - 4]
mov byte [0x100e3113], 1
call fcn.10046141
push 0x822
push 0
push dword [ebp - 4]
call fcn.100b40f0
mov edi, dword [ebp - 4]
add esp, 0xc
push 0x104
add edi, 0x410
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str.PE_IDBASE
push 0x1000
mov esi, 0x100e3108
push esi
call fcn.1004884d
push str.WM_PE_BASE
push 0x5000
push esi
call fcn.1004884d
push str.PE_MENU_IDBASE
push 0x100
push esi
call fcn.1004884d
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add esp, 0x24
push edi
push 0x100c94ca
call esi
push edi
mov ebx, 0x100e3108
push str.MyName
mov ecx, ebx
call fcn.100457c2
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor edi, edi
cmp eax, edi
je 0x10013500
lea edi, [eax + 2]
push edi
push 0x100c94b6
call esi
push edi
push str.MyName0
mov ecx, ebx
call fcn.100457c2
xor edi, edi
push edi
push edi
push 0x100c8a98
call fcn.10013386
push edi
push edi
push str.Favorites
call fcn.10013386
push edi
push edi
push str.Programs
call fcn.10013386
push edi
push edi
push 0x100c8a48
call fcn.10013386
push edi
push edi
push str.Personal
call fcn.10013386
push edi
push str.Start_Menu
push 0x100c8a80
call fcn.10013386
add esp, 0x48
push edi
push str.Cache
push str.IECache
call fcn.10013386
push edi
push edi
push str.Startup
call fcn.10013386
push str.MicrosoftInternet_ExplorerQuick_Launch
push str.AppData
push str.QuickLaunch
call fcn.10013386
add esp, 0x24
lea ecx, [ebp - 4]
call fcn.1003f96c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100135eb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b8
call fcn.100b44d0
push esi
mov esi, 0x100e12e8
and word [ebp - 0x14b8], 0
mov edx, dword [esi]
mov word [ebp - 0x64], 0x26
lea ecx, [ebp - 0x62]
movsx ax, byte [edx]
mov word [ecx], ax
inc ecx
inc ecx
inc edx
test ax, ax
jne 0x10013611
push 0xa28
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x62]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x100e3108
call fcn.100457c2
add esi, 4
cmp esi, 0x100e12fc
jl 0x100135fe
pop esi
leave
ret
Function at 0x10014031
Capabilities:
Check if file exists
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x10014131
cmp dword [ebp + 8], 0xffffffff
jne 0x10014131
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
cmp eax, 2
jne 0x1001406b
xor eax, eax
cmp word [ebx + 2], 0x3a
sete al
jmp 0x1001408c
push ebx
call esi
cmp eax, 3
jne 0x1001408a
lea eax, [ebx + 2]
push 0x100c9a38
push eax
call fcn.100b450d
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x1001408c
xor eax, eax
cmp eax, edi
je 0x100140e6
mov ax, word [ebx]
mov esi, 0x100c9a28
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
mov ebx, 0x20000000
push ebx
push 3
push 0
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 3
mov word [ebp - 0x10], ax
push 0xc0000000
lea eax, [ebp - 0x18]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10014171
push 0
push ebx
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x18]
push eax
call edi
xor edi, edi
jmp 0x10014154
push 0xc0000000
push ebx
call dword [0x100e3094]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10014173
push 0x80000000
push ebx
call dword [0x100e3094]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10014173
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x10014129
sub eax, 0x56
je 0x10014129
sub eax, 0x3a
je 0x10014129
sub eax, 0x7a
je 0x10014129
sub eax, 0x101b
push 9
pop eax
jmp 0x10014201
push 0xc0000000
push dword [ebp + 8]
call dword [0x100e3090]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10014173
push 0x80000000
push dword [ebp + 8]
call dword [0x100e3090]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10014173
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
setne cl
inc ecx
mov eax, ecx
jmp 0x10014201
xor edi, edi
push esi
call fcn.10013a6d
test eax, eax
pop ecx
jne 0x1001418c
push 5
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x10014201
test byte [ebp + 0x10], 3
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
je 0x100141cd
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
lea eax, [ebp + 0xc]
push eax
push edi
push edi
push edi
push edi
push 0x90018
push esi
call ebx
test eax, eax
jne 0x100141b8
push 2
jmp 0x10014180
push edi
lea eax, [ebp + 0xc]
push eax
push edi
push edi
push edi
push edi
push 0x90020
push esi
call ebx
test eax, eax
je 0x100141b4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 8
lea eax, [ebp - 8]
push eax
push 8
push eax
push 0x83722014
push esi
call ebx
cmp dword [ebp - 8], edi
je 0x100141f8
push 3
jmp 0x10014180
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10014206
Capabilities:
Check if file exists
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
xor eax, eax
cmp esi, ebx
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jne 0x1001426a
push 0xc0000000
push dword [ebp + 8]
call dword [0x100e3090]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10014349
push 0x80000000
push dword [ebp + 8]
call dword [0x100e3090]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10014349
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
setne cl
inc ecx
mov eax, ecx
jmp 0x100143e9
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 2
jne 0x10014284
xor eax, eax
cmp word [esi + 2], 0x3a
sete al
jmp 0x100142a5
push esi
call edi
cmp eax, 3
jne 0x100142a3
lea eax, [esi + 2]
push 0x100c9a38
push eax
call fcn.100b450d
neg eax
pop ecx
sbb eax, eax
pop ecx
inc eax
jmp 0x100142a5
xor eax, eax
cmp eax, ebx
je 0x100142fe
mov eax, dword [ebp + 0xc]
mov ax, word [eax]
mov esi, 0x100c9a28
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
push 0x20000000
movsd dword es:[edi], dword [esi]
push 3
push ebx
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 3
mov word [ebp - 0x1c], ax
push 0xc0000000
lea eax, [ebp - 0x24]
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x10014349
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x24]
push eax
call esi
jmp 0x10014249
push 0xc0000000
push esi
call dword [0x100e3094]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10014349
push 0x80000000
push esi
call dword [0x100e3094]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10014349
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec eax
je 0x10014341
sub eax, 0x56
je 0x10014341
sub eax, 0x3a
je 0x10014341
sub eax, 0x7a
je 0x10014341
sub eax, 0x101b
push 9
pop eax
jmp 0x100143e9
mov eax, dword [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x10
lea eax, [ebp - 0x34]
push eax
push 0x7c0d0
push edi
mov dword [ebp - 0x34], 1
call esi
test eax, eax
jne 0x10014380
push 3
pop ebx
jmp 0x100143e0
push ebx
lea eax, [ebp - 4]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x7405c
push edi
call esi
test eax, eax
je 0x100143b2
push ebx
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x4c]
push eax
push ebx
push ebx
push 0x70000
push edi
call esi
test eax, eax
jne 0x100143b6
push 2
jmp 0x1001437d
push ebx
push dword [ebp - 0x38]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.100b4150
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 8
lea eax, [ebp - 0x14]
push eax
push 0x900f0
push edi
mov dword [ebp - 0x10], edx
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10014bc4
Capabilities:
Acquire debug privileges

Disassembly:
xor eax, eax
cmp byte [esp + 4], al
push esi
mov esi, ecx
mov byte [esi], al
je 0x10014bf4
test byte [0x100e3dd4], 4
jne 0x10014bf4
push eax
push 2
mov byte [esi], 1
or byte [0x100e3dd4], 4
push str.SeDebugPrivilege
call fcn.10013699
add esp, 0xc
mov eax, esi
pop esi
ret 4

Function at 0x10014bfa
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [ecx], 0
je 0x10014c17
and byte [0x100e3dd4], 0xfb
push 0
push 4
push str.SeDebugPrivilege
call fcn.10013699
add esp, 0xc
ret

Function at 0x10014e9e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.10003ea0
mov edi, dword [ebp + 8]
pop ecx
push 0x5c
pop ecx
cmp word [edi], cx
mov byte [ebp - 4], al
mov eax, edi
jne 0x10014ee5
cmp word [edi + 2], cx
jne 0x10014ee5
cmp word [edi + 4], 0x3f
jne 0x10014ee5
cmp word [edi + 6], cx
jne 0x10014ee5
lea eax, [edi + 8]
cmp word [eax], 0
je 0x10014efc
cmp word [eax + 2], 0x3a
jne 0x10014efc
add eax, 4
cmp word [eax], cx
jne 0x10014efc
inc eax
inc eax
mov ebx, dword [sym.imp.SHLWAPI.dll_StrChrW]
push ecx
push eax
jmp 0x10014f28
and word [esi], 0
push edi
call fcn.100b36d9
test eax, eax
pop ecx
jne 0x10014f1d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov word [esi], 0x5c
push 0x5c
add esi, 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x10014f06
cmp byte [ebp - 4], al
pop edi
pop esi
pop ebx
je 0x10014f41
push dword [ebp - 8]
call fcn.10003eb1
pop ecx
push 0x100e3d7c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
inc eax
leave
ret
Function at 0x100150ad
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
movzx ecx, word [eax + 6]
mov eax, dword [eax + 0x54]
push edi
mov edi, dword [ebp + 8]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*8]
push eax
push dword [ebp + 0xc]
push edi
call fcn.100144b5
mov eax, dword [esi + 0x14]
xor ebx, ebx
add esp, 0xc
cmp word [eax + 6], bx
mov dword [ebp - 4], ebx
jbe 0x10015150
mov eax, dword [esi + 0x18]
add eax, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1001513e
mov edx, dword [eax + 0x10]
test edx, edx
je 0x1001513e
mov eax, dword [eax + 0x14]
add eax, dword [ebp + 0xc]
push edx
add edi, ecx
push eax
push edi
call fcn.100144b5
mov eax, dword [esi + 0x18]
add esp, 0xc
add eax, ebx
push 0x100c9b4c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1001513b
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x18]
sub edi, eax
lea ecx, [ecx + ebx + 0xc]
lea edx, [edi + eax]
add dword [ecx], edx
mov ecx, dword [esi + 0x18]
lea ecx, [ecx + ebx + 0x14]
add edi, eax
add dword [ecx], edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
movzx eax, word [eax + 6]
inc dword [ebp - 4]
add ebx, 0x28
cmp dword [ebp - 4], eax
jl 0x100150e4
mov dword [esi + 0x10], edi
mov eax, dword [edi + 0x3c]
add eax, edi
mov dword [esi + 0x14], eax
add eax, 0xf8
pop edi
mov dword [esi + 0x18], eax
pop esi
pop ebx
leave
ret 8

Function at 0x10015433
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.100b40f0
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp dword [ebp + 8], 0
je 0x10015468
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
leave
ret
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
leave
ret
Function at 0x100155e3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
push edi
mov dword [ebp - 0xc], 0x20
je 0x100155ff
mov dword [ebp - 8], esi
jmp 0x10015607
lea eax, [ebp - 0xc]
mov dword [ebp - 8], eax
mov esi, eax
push dword [ebp + 0x10]
mov ax, word [esi + 2]
push dword [ebp + 0xc]
mov word [ebp - 4], ax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x10015632
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
jmp 0x10015634
xor edi, edi
test ebx, ebx
je 0x10015644
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
jmp 0x10015646
xor eax, eax
xor cl, cl
test byte [esi], 1
mov byte [ebp + 0x1b], cl
je 0x10015662
test eax, eax
je 0x10015743
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [ebp + 0x1b]
mov ebx, eax
test ebx, ebx
je 0x10015743
test edi, edi
jle 0x10015743
test byte [esi], 0x40
jne 0x100156d2
push 0
push edi
push ebx
call fcn.10042f62
add esp, 0xc
test al, al
mov byte [ebp + 0x1b], al
je 0x100156d2
test byte [esi], 0x20
je 0x1001569c
test al, 2
je 0x1001569c
xor eax, eax
jmp 0x1001574c
push 0
lea ecx, [ebp - 0x18]
call fcn.10050195
movzx eax, word [ebp - 4]
mov esi, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call fcn.1004a457
and dword [ebp - 0x18], 0
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.1003f96c
jmp 0x1001570f
mov esi, dword [ebp + 0x14]
lea eax, [edi + 0x410]
push eax
mov ecx, esi
call fcn.1000f742
push edi
push ebx
push dword [esi]
mov dword [esi + 8], edi
mov dword [esi + 4], edi
call fcn.100144ff
add esp, 0xc
cmp word [ebp - 4], 0
je 0x1001570f
movzx eax, word [ebp - 4]
inc edi
shr edi, 1
push edi
push eax
push dword [esi]
call fcn.10012cc0
add esp, 0xc
mov eax, dword [esi + 4]
mov edi, dword [esi]
lea ecx, [eax + 0x10]
push 0x10
add eax, edi
push 0
push eax
mov dword [esi + 8], ecx
call fcn.100b40f0
movzx eax, word [ebp - 4]
push 0xc
push eax
mov eax, dword [esi + 4]
add eax, edi
push eax
call fcn.100b40f0
mov esi, dword [ebp - 8]
mov cl, byte [ebp + 0x1b]
add esp, 0x18
jmp 0x10015745
xor edi, edi
and ecx, 2
or dword [esi], ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10015751
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp + 8]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.10005b9d
cmp dword [ebp - 8], ebx
jne 0x10015782
push 0xfffffffffffffffe
pop esi
jmp 0x10015842
push edi
push dword [ebp - 8]
call fcn.100a0afd
push ebx
push ebx
push ebx
push dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x10], esi
call fcn.10040d01
add esp, 0x14
add esi, 0xc
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.10045ff1
mov edi, dword [esi]
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
push 6
add eax, edi
push ebx
push eax
call fcn.100b40f0
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x10]
mov dword [esi + 8], eax
push eax
push edi
mov dword [esi + 4], eax
call fcn.10042f62
add esp, 0x18
cmp al, 1
mov byte [ebp - 1], al
pop edi
jne 0x1001582b
push dword [0x100e30b4]
lea ecx, [ebp - 0x1c]
push esi
call fcn.1000f790
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.1004a457
mov eax, dword [esi + 4]
add esp, 0xc
add eax, 0xc
push eax
mov ecx, esi
call fcn.10045ff1
lea ecx, [ebp - 0x1c]
call fcn.1003f96c
push 1
push esi
call fcn.100a3193
cmp byte [ebp - 1], bl
pop ecx
pop ecx
jge 0x1001583f
or esi, 0xffffffff
jmp 0x10015842
mov esi, dword [esi + 4]
lea ecx, [ebp - 8]
call fcn.10002d56
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10017300
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push 0x100e2c24
push 0x10004
push ecx
push 0x1001729d
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1001734e
push edi
mov edi, 0x100e3d7c
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x100e34c0], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret