joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100264f
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
jne 0x1002660
call fcn.01002623
cmp eax, 2
jne 0x100269e
test byte [esp + 4], 4
jne 0x1002683
push 4
push 0x40
push 0
push 0x1001251
push 0x522
push 0
call fcn.010038f8
cmp eax, 6
jne 0x100269e
cmp word [0x100aa64], 0
jne 0x1002699
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100269e
call fcn.010018c5
ret 4

Function at 0x10026a1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x7c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
jle 0x10027e0
mov dword [ebp - 0xc], ebx
jmp 0x10026c8
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi + 0x80]
add eax, edi
lea esi, [eax + ecx + 0x84]
mov eax, dword [esi + 0x38]
lea eax, [eax + edi + 0x84]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01002091
test eax, eax
je 0x10027e7
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x10027c4
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10027e7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x10027e7
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10027b9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x100132c
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10027b9
cmp dword [ebp - 0x1c], 0
je 0x10027b9
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 0xc]
mov ebx, dword [eax + 8]
lea ecx, [esi + 0x10]
xor edx, edx
push dword [ecx - 0xc]
push dword [ecx - 0x10]
push edi
push ebx
call fcn.010021e4
push dword [ecx]
mov dword [ebp + edx - 0x28], eax
push dword [ecx - 4]
push edi
push ebx
call fcn.010021e4
mov dword [ebp + edx - 0x30], eax
add edx, 4
add ecx, 0x18
cmp edx, 8
jl 0x1002772
cmp dword [ebp - 0x28], 0
jl 0x10027aa
cmp dword [ebp - 0x30], 0
jle 0x10027b6
cmp dword [ebp - 0x24], 0
jl 0x1002808
cmp dword [ebp - 0x2c], 0
jg 0x1002808
mov edi, dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x10027cd
cmp dword [esi], ebx
jne 0x10027e7
cmp dword [esi + 4], ebx
jne 0x10027e7
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], 0x3c
cmp eax, dword [edi + 0x7c]
jl 0x10026c6
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
je 0x1002801
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x10]
leave
ret 0x10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x10027e7
Function at 0x1002a44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push edi
push 0xa
push dword [ebp + 8]
xor edi, edi
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, dword [ebp + 0x10]
ja 0x1002aad
cmp dword [ebp + 0xc], edi
je 0x1002aad
cmp ebx, edi
je 0x1002a8d
push 0xa
push dword [ebp + 8]
push edi
call esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
jne 0x1002a91
xor eax, eax
jmp 0x1002aaf
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x1002b44
Capabilities:
Create directory

Disassembly:
push edi
mov edi, dword [esp + 8]
mov cl, byte [edi]
test cl, cl
je 0x1002ba9
push ebx
push esi
lea esi, [edi + 1]
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x3a
jne 0x1002b67
cmp byte [edi + 2], 0x5c
jne 0x1002b67
lea esi, [edi + 3]
jmp 0x1002ba2
cmp cl, 0x5c
jne 0x1002ba2
cmp al, cl
jne 0x1002ba2
push 2
lea esi, [edi + 2]
pop ebx
jmp 0x1002ba2
cmp byte [esi], 0x5c
jne 0x1002b99
cmp byte [esi - 1], 0x3a
je 0x1002b99
test ebx, ebx
je 0x1002b8a
dec ebx
jmp 0x1002b99
and byte [esi], 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x1002b78
pop esi
pop ebx
pop edi
ret 4

Function at 0x1002ebf
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [0x100ac40]
xor ebp, ebp
cmp esi, ebp
push edi
mov edi, esi
je 0x1002f13
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [0x100b884], ebp
jne 0x1002f02
cmp dword [0x100b490], ebp
jne 0x1002f02
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call ebx
push edi
call ebx
cmp esi, ebp
mov edi, esi
jne 0x1002edd
pop ebx
cmp dword [0x100b880], ebp
je 0x1002f63
cmp dword [0x100b884], ebp
jne 0x1002f63
cmp dword [0x100b490], ebp
jne 0x1002f63
push 0x100ac44
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100b494], 0x20
je 0x1002f4e
lea eax, [esp + 0xc]
push eax
call fcn.01005bf7
push 0x1001284
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
call fcn.01001c8f
cmp word [0x100aa64], 1
je 0x1002f7a
cmp dword [0x100b880], ebp
je 0x1002f7a
call fcn.01001956
pop edi
pop esi
mov dword [0x100b880], ebp
pop ebp
add esp, 0x104
ret
Function at 0x1002f8a
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
xor edi, edi
xor ebp, ebp
push edi
lea eax, [esp + 0x14]
push 0x1001348
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esp + 0x118]
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.01005bb8
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
je 0x1003025
cmp edi, 0x190
jl 0x1002f9f
push esi
push 0
push 0x1001344
push dword [esp + 0x124]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1003016
xor ebp, ebp
push esi
inc ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x104
ret 8
xor ebp, ebp
push ebp
push esi
call ebx
test eax, eax
je 0x1002fee
xor eax, eax
inc eax
mov dword [0x100b880], eax
mov ebp, eax
jmp 0x1003016
Function at 0x1003592
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x24]
push 0x1001330
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], edi
call ebx
add esp, 0xc
push 0xa
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100365b
push esi
jmp 0x10035d5
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, edi
je 0x1003641
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 4]
lea edi, [esi + 8]
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + edi + 1]
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [ebp + 8]
test eax, eax
push esi
je 0x1003650
call dword [sym.imp.KERNEL32.dll_FreeResource]
inc dword [ebp - 4]
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push 0x1001330
push eax
call ebx
add esp, 0xc
push 0xa
lea eax, [ebp - 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x10035d3
jmp 0x100365a
mov dword [0x100aa5c], 0x80070714
mov dword [ebp - 8], edi
jmp 0x100365a
and dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x100ac44
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.01005bb8
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100378e
test al, 0x10
jne 0x100378e
push 8
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x1003797
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4
Function at 0x1003e8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x14
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x1003ecc
push ebp
push 0x10
push ebp
push ebp
push 0x4b5
push ebp
call fcn.010038f8
call fcn.01003573
mov dword [0x100aa5c], eax
xor eax, eax
jmp 0x1003f33
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10013c4
push esi
call fcn.01005bb8
push ebp
push 0x4000080
push 1
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x1003f26
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1003f26
test al, 0x10
je 0x1003f26
xor eax, eax
mov dword [0x100aa5c], ebp
inc eax
jmp 0x1003f32
call fcn.01003573
mov dword [0x100aa5c], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x1003f39
Capabilities:
Get common file path
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
jne 0x1003f55
xor eax, eax
inc eax
jmp 0x1004139
push esi
push edi
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
test eax, eax
jne 0x1003f99
push ebx
push 0x10
push ebx
push ebx
push 0x4bc
push ebx
call fcn.010038f8
call fcn.01003573
mov dword [0x100aa5c], eax
xor eax, eax
jmp 0x1004137
lea eax, [ebp - 4]
push eax
push ebx
call fcn.01005eed
mov edi, eax
cmp edi, ebx
jne 0x1003ffe
push 0x7f
mov byte [ebp - 0x318], bl
xor eax, eax
pop ecx
lea edi, [ebp - 0x317]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.01003573
push ebx
mov dword [0x100aa5c], eax
push 0x200
lea eax, [ebp - 0x318]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
push 0x10
lea eax, [ebp - 0x318]
push eax
push dword [ebp + 8]
push 0x4b0
jmp 0x1004067
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x100407b
push 0x7f
mov byte [ebp - 0x318], bl
pop ecx
lea edi, [ebp - 0x317]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.01003573
push ebx
mov dword [0x100aa5c], eax
push 0x200
lea eax, [ebp - 0x318]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
push 0x10
lea eax, [ebp - 0x318]
push eax
push dword [ebp + 8]
push 0x4f9
push ebx
call fcn.010038f8
lea eax, [ebp - 0x118]
push eax
call esi
jmp 0x1003f92
lea eax, [ebp - 0x118]
push eax
call esi
push 3
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, 0x200
xor eax, eax
cmp dword [ebp - 4], ecx
je 0x10040a8
shl ecx, 1
inc eax
cmp ax, 8
jb 0x100409a
cmp ax, 8
jne 0x10040c3
push ebx
push 0x10
push ebx
push ebx
push 0x4c5
push ebx
call fcn.010038f8
jmp 0x1003f92
test byte [0x100b494], 8
je 0x10040ed
test byte [ebp - 0xf], 0x80
je 0x10040ed
mov edx, dword [0x100b498]
movzx eax, ax
mov eax, dword [eax*4 + 0x100bbc0]
mov ecx, edx
shr ecx, 2
shl eax, 1
add ecx, edx
jmp 0x10040fd
mov ecx, dword [0x100b498]
movzx eax, ax
mov eax, dword [eax*4 + 0x100bbc0]
mov esi, dword [ebp + 0xc]
and esi, 1
je 0x1004122
test byte [ebp + 0xc], 2
je 0x1004122
lea edx, [ecx + eax]
cmp edx, edi
jbe 0x100412e
lea edx, [ebp - 0xc]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call fcn.01001fde
jmp 0x1004137
cmp esi, ebx
je 0x100412a
cmp eax, edi
jmp 0x1004110
cmp ecx, edi
jmp 0x1004110
xor eax, eax
mov dword [0x100aa5c], ebx
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100413e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x100417b
push eax
push 0x10
push eax
push eax
push 0x4f0
push eax
call fcn.010038f8
call fcn.01003573
mov dword [0x100aa5c], eax
xor eax, eax
leave
ret
push 2
push 2
lea eax, [ebp - 0x104]
push eax
call fcn.01003f39
leave
ret
Function at 0x100458c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
xor ebx, ebx
push esi
xor esi, esi
inc ebx
xor eax, eax
cmp dword [ebp + 8], esi
je 0x100467d
push edi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1004635
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [0x100b888], esi
mov ecx, dword [ebp + 0xc]
jne 0x100460f
mov al, byte [0x100b48c]
test bl, al
je 0x100460f
test al, 2
jne 0x100460f
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x100460f
mov dword [0x100b48c], ecx
push ecx
call fcn.0100290a
push dword [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x10]
call edi
test byte [0x100b495], 4
je 0x100467a
cmp dword [ebp + 0xc], esi
jge 0x100467a
jmp 0x1004678
call fcn.01003573
push esi
mov dword [0x100aa5c], eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push esi
push 0x10
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
push 0x4c4
push esi
call fcn.010038f8
xor ebx, ebx
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1004700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push str.SHELL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x14], edi
je 0x100481a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHBrowseForFolder
push edi
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1004807
push 0xc3
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x1004807
push str.SHGetPathFromIDList
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1004807
cmp byte [0x100aa80], bl
mov esi, 0x100aa80
jne 0x10047a4
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.USER32.dll_CharPrevA]
add eax, esi
push eax
push esi
call edi
cmp byte [eax], 0x5c
mov dword [ebp - 4], eax
jne 0x10047a4
push eax
push esi
call edi
cmp byte [eax], 0x3a
je 0x10047a4
mov eax, dword [ebp - 4]
mov byte [eax], bl
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
mov byte [edi], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x1002958
mov dword [ebp - 0x1c], esi
call dword [ebp - 8]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x10047f5
push esi
push eax
call dword [ebp - 0xc]
cmp byte [0x100aa80], bl
je 0x10047ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
call dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
cmp byte [edi], bl
setne al
jmp 0x100482e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
push 0x10
push ebx
push ebx
push 0x4c1
jmp 0x1004824
push ebx
push 0x10
push ebx
push ebx
push 0x4c2
push dword [ebp + 8]
call fcn.010038f8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1004835
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebx, ebx
inc ebx
push esi
mov edi, ebx
call fcn.01005c50
test eax, eax
jne 0x100484f
mov eax, ebx
jmp 0x10048aa
cmp dword [0x100ac3c], 0
jne 0x100489c
test byte [0x100b898], bl
jne 0x100489c
push 6
push 0
push 0x1003869
push dword [0x100aa4c]
mov dword [0x100ae64], esi
push 0x7d3
push dword [0x100b4a4]
call fcn.0100418d
sub eax, 6
je 0x100489a
dec eax
je 0x10048b0
sub eax, 0x832
jne 0x100489c
mov dword [0x100ac3c], ebx
mov edi, ebx
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
xor edi, edi
jmp 0x10048a8
Function at 0x1004b46
Capabilities:
Create directory
Delete directory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
je 0x1004bd3
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call fcn.01002f8a
test eax, eax
je 0x1004c3c
lea eax, [ebp - 0x128]
push eax
mov esi, 0x100ac44
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [0x100b494], 0x20
je 0x1004bc6
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x24]
sub eax, ebx
je 0x1004bbb
dec eax
je 0x1004bb4
dec eax
je 0x1004bad
dec eax
jne 0x1004bc6
push 0x1001400
jmp 0x1004bc0
push 0x10013f8
jmp 0x1004bc0
push 0x10013f0
jmp 0x1004bc0
push 0x10013e8
push esi
call fcn.01005bb8
push 0x1001251
push esi
call fcn.01005bb8
jmp 0x1004be2
push dword [ebp + 8]
mov esi, 0x100ac44
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call fcn.01003e8c
test eax, eax
jne 0x1004c02
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1004c1b
mov dword [0x100b880], 1
push ebx
push dword [ebp + 0x10]
push esi
call fcn.01003f39
test eax, eax
je 0x1004c27
xor eax, eax
mov dword [0x100aa5c], ebx
inc eax
jmp 0x1004c3e
call fcn.01003573
mov dword [0x100aa5c], eax
jmp 0x1004c3c
cmp dword [0x100b880], ebx
je 0x1004c3c
push esi
mov dword [0x100b880], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
pop esi
pop ebx
leave
ret 0xc
Function at 0x1004c44
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [0x100b4a4], eax
xor eax, eax
mov ecx, 0x23f
mov edi, 0x100aba0
rep stosd dword es:[edi], eax
push 0x41
mov ecx, 0xcb
mov edi, 0x100b880
rep stosd dword es:[edi], eax
pop ecx
mov edi, 0x100aa80
rep stosd dword es:[edi], eax
push 0x7f
mov esi, 0x100abb4
xor edi, edi
push esi
xor ebx, ebx
inc edi
push 0x100142c
mov dword [ebp - 4], ebx
mov dword [0x100ae4c], edi
call fcn.01002a44
cmp eax, ebx
je 0x1004e69
cmp eax, 0x80
ja 0x1004e69
push ebx
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x100aa50], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
push 0x100b494
push 0x1001420
call fcn.01002a44
test eax, eax
je 0x1004d01
test byte [0x100b494], 0xc0
je 0x1004d91
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x1001410
call fcn.01002a44
test eax, eax
jne 0x1004d20
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.010038f8
mov dword [0x100aa5c], 0x80070714
jmp 0x1004e79
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [0x100aa54], eax
je 0x1004d91
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1004d91
test byte [0x100b494], 0x80
je 0x1004d60
push ebx
push 0x10
push ebx
push esi
push 0x54b
push ebx
call fcn.010038f8
jmp 0x1004d76
push 4
push 0x20
push ebx
push esi
push 0x524
push ebx
call fcn.010038f8
cmp eax, 6
je 0x1004d91
push dword [0x100aa54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x100aa5c], 0x800700b7
jmp 0x1004e79
push dword [ebp + 0xc]
mov dword [0x100aa60], ebx
call fcn.010030b7
test eax, eax
jne 0x1004db2
push ebx
push 0x10
push ebx
push ebx
push 0x520
jmp 0x1004e73
cmp byte [0x100b89a], bl
je 0x1004dc9
push 0x100b89a
call fcn.01001c8f
jmp 0x1004e79
push 0xa
push 0x1001404
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x1004dea
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [0x100a2bc], ebx
je 0x1004df8
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x100b884], ebx
jne 0x1004e65
push dword [ebp - 4]
call fcn.010041f9
test eax, eax
je 0x1004e79
mov ax, word [0x100aa64]
cmp ax, di
je 0x1004e23
cmp ax, 2
je 0x1004e23
cmp ax, 3
jne 0x1004e65
test byte [0x100b495], 1
je 0x1004e65
test byte [0x100b898], 1
jne 0x1004e65
call fcn.0100169b
test eax, eax
jne 0x1004e65
push 0x83e
push 0x547
push 0x10017c1
push ebx
push 0x7d6
push dword [0x100b4a4]
call fcn.0100418d
cmp eax, 0x83d
jne 0x1004e79
mov eax, edi
jmp 0x1004e7b
push ebx
push 0x10
push ebx
push ebx
push 0x4b1
push ebx
call fcn.010038f8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc