joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480040
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48029a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.004818b4
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x5432e4], eax
mov eax, dword [ebp - 0xc]
mov dword [0x5432e8], eax
mov eax, dword [ebp - 0x24]
mov dword [0x5432ec], eax
mov eax, dword [0x554cdc]
cmp dword [eax], 2
sete byte [0x542a7c]
push 0x4802a8
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.00480d48
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x542a7c], 0
jne 0x4800cf
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.00480e8c
test al, al
je 0x4800cf
mov eax, dword [ebp - 0x4c]
mov dword [0x555c68], eax
jmp 0x4800d6
xor eax, eax
mov dword [0x555c68], eax
call fcn.0047f7b4
and eax, 0x7f
cmp eax, 0x1a
ja case.0x4800e7.0
jmp dword [eax*4 + 0x4800ee]
mov byte [0x542a68], 1
jmp case.0x4800e7.0
mov byte [0x542a6c], 1
jmp case.0x4800e7.0
mov byte [0x542a70], 1
jmp case.0x4800e7.0
mov byte [0x542a74], 1
jmp case.0x4800e7.0
mov byte [0x542a78], 1
jmp case.0x4800e7.0
mov byte [0x542a80], 1
mov byte [0x542a84], 1
jmp case.0x4800e7.0
mov byte [0x542a80], 1
mov byte [0x542a88], 1
jmp case.0x4800e7.0
mov byte [0x542a80], 1
mov byte [0x542a88], 1
mov byte [0x542a8c], 1
jmp case.0x4800e7.0
mov byte [0x542a90], 1
jmp case.0x4800e7.0
mov byte [0x542a94], 1
jmp case.0x4800e7.0
mov byte [0x542a98], 1
jmp case.0x4800e7.0
mov byte [0x542a9c], 1
jmp case.0x4800e7.0
mov byte [0x542aa0], 1
jmp case.0x4800e7.0
mov byte [0x542aa4], 1
jmp case.0x4800e7.0
mov byte [0x542aa8], 1
jmp case.0x4800e7.0
mov byte [0x542aac], 1
jmp case.0x4800e7.0
mov byte [0x542ab0], 1
jmp case.0x4800e7.0
mov byte [0x542ab4], 1
jmp case.0x4800e7.0
mov byte [0x542ab8], 1
jmp case.0x4800e7.0
mov byte [0x542abc], 1
jmp case.0x4800e7.0
mov byte [0x542ac0], 1
jmp case.0x4800e7.0
mov byte [0x542ac4], 1
jmp case.0x4800e7.0
mov byte [0x542ac8], 1
jmp case.0x4800e7.0
mov byte [0x542acc], 1
jmp case.0x4800e7.0
mov byte [0x542ad0], 1
jmp case.0x4800e7.0
mov byte [0x542ad4], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4802a1
lea eax, [ebp - 4]
call fcn.0040441c
ret

Function at 0x4808e4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x3c]
mov edx, 0x3c
call fcn.004818b4
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x600
mov eax, ebx
call fcn.00404908
mov dword [ebp - 0x2c], eax
mov eax, esi
call fcn.004818c4
mov dword [ebp - 0x28], eax
mov eax, edi
call fcn.004818c4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48094c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00404908
push eax
mov eax, dword [ebp + 0x10]
call fcn.00404908
push eax
mov eax, edi
call fcn.00404908
push eax
mov eax, esi
call fcn.00404908
push eax
push ebx
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4809d8
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
mov eax, dword [0x554c8c]
mov al, byte [eax]
xor al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x480b62
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x15], 0
xor eax, eax
push ebp
push 0x480b5b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x480a61
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
jne 0x480a61
lea eax, [ebp - 0xc]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
je 0x480b21
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
mov eax, dword [0x554a34]
push eax
call sub.advapi32.dll_AllocateAndInitializeSid
call fcn.0040eed4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x480ab1
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x480ab6
call fcn.0040ee38
mov eax, dword [ebp - 0x10]
call fcn.00408d0c
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
call fcn.0040eed4
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x480b21
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x480b1d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x10
cmp eax, 0x10
setne byte [ebp - 1]
jmp 0x480b21
inc ebx
dec esi
jne 0x480aea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480b62
cmp dword [ebp - 0x14], 0
je 0x480b3c
mov eax, dword [ebp - 0x14]
call fcn.00402764
cmp byte [ebp - 0x15], 0
je 0x480b4b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
cmp dword [ebp - 8], 0
je 0x480b5a
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x480d24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
je 0x480d42
push ebx
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x480d3a
test al, 0x10
je 0x480d3e
xor eax, eax
jmp 0x480d44
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x480e8c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x480f42
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404908
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x480f2c
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404a94
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404908
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x480f2c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x480f54
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x480f2c
cmp dword [ebp - 8], 0x34
jne 0x480f2c
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480f49
lea eax, [ebp - 0x10]
call fcn.0040441c
ret

Function at 0x480f58
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x480f6d
add esp, 0xfffffff0
call fcn.00403930
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, edi
call fcn.00480d24
test al, al
jne 0x480fa3
mov dword [ebp - 0x10], edi
mov byte [ebp - 0xc], 0xb
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [0x5544f0]
mov dl, 1
mov eax, dword [0x480be8]
call fcn.0040d548
call fcn.00403d98
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.00404908
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x480fd6
mov ecx, dword [0x554680]
mov dl, 1
mov eax, dword [0x480be8]
call fcn.0040d50c
call fcn.00403d98
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404a94
mov eax, dword [ebx + 4]
call fcn.00404908
push eax
push esi
mov eax, dword [ebp - 8]
push eax
mov eax, edi
call fcn.00404908
push eax
call sub.version.dll_GetFileVersionInfoA
call fcn.0040eed4
mov eax, ebx
call fcn.004815f4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x48101e
call fcn.00403988
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x481c98
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x481daa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
test esi, esi
je 0x481cce
mov eax, dword [ebp - 4]
test eax, eax
jne 0x481cda
push 0x57
call sub.kernel32.dll_SetLastError
jmp 0x481d94
test ebx, ebx
jne 0x481ce3
mov ebx, 0x1000
push 0x555c90
call sub.kernel32.dll_InterlockedIncrement_1
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_GetCurrentProcessId
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
call sub.kernel32.dll_GetCurrentThreadId_1
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, dword [0x555c90]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x24]
mov ecx, 2
mov eax, 0x481dc8
call fcn.0040a528
push edi
push 0x1d4c0
push ebx
push ebx
push 1
push 0
push 0x40000001
mov eax, dword [ebp - 0xc]
call fcn.00404908
push eax
call sub.kernel32.dll_CreateNamedPipeA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x481d94
push 0
push 0x80
push 3
push edi
push 0
push 0x40000000
mov eax, dword [ebp - 0xc]
call fcn.00404908
push eax
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x481d86
call sub.kernel32.dll_GetLastError
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_SetLastError
jmp 0x481d94
mov dword [esi], ebx
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov dword [ebp - 8], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481db1
lea eax, [ebp - 0xc]
call fcn.0040441c
ret
Function at 0x48326c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4832fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x554cdc]
cmp dword [eax], 2
jne 0x4832ac
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
push esi
push ebx
call sub.advapi32.dll_RegQueryValueExW
mov ebx, eax
jmp 0x4832df
lea eax, [ebp - 8]
mov edx, esi
call fcn.00404c8c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004046d0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
mov eax, dword [ebp - 4]
call fcn.00404908
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483304
lea eax, [ebp - 8]
call fcn.00404b54
lea eax, [ebp - 4]
call fcn.0040441c
ret

Function at 0x48379c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x20019
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.00404908
mov edx, eax
mov eax, ebx
call fcn.00482fc0
mov edx, eax
xor ecx, ecx
mov eax, ebx
call fcn.00483214
test eax, eax
sete al
mov ebx, eax
test bl, bl
je 0x48380e
push 0
push 0
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.00404908
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x489988
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4899ec
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040469c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409528
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4899f3
lea eax, [ebp - 0xc]
call fcn.0040441c
ret
Function at 0x48c3c8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor ebx, ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
test dl, dl
je 0x48c3ec
add esp, 0xfffffff0
call fcn.00403930
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x48c4c1
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00423904
mov byte [ebx + 0x30], 1
push ebx
push 0x48c588
call fcn.004249a8
mov dword [ebx + 0x40], eax
lea eax, [ebp - 8]
mov edx, 0x400
call fcn.00404a94
push 0x400
mov eax, dword [ebp - 8]
call fcn.00404908
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404a94
lea edx, [ebp - 0x260]
mov eax, dword [ebp - 8]
call fcn.0040e17c
mov edx, dword [ebp - 0x260]
lea eax, [ebp - 8]
mov ecx, 0x48c4f0
call fcn.00404754
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404ce4
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404cf4
push eax
call sub.kernel32.dll_FindFirstFileW
cmp eax, 0xffffffff
setne dl
mov byte [ebx + 0x58], dl
test dl, dl
je 0x48c498
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c4c8
lea eax, [ebp - 0x260]
call fcn.0040441c
lea eax, [ebp - 0xc]
call fcn.00404b54
lea eax, [ebp - 8]
call fcn.0040441c
ret
Function at 0x4960d4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc64
push ebx
xor edx, edx
mov dword [ebp - 0x39c], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004050ac
xor eax, eax
push ebp
push 0x496270
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x54d318], 0
je 0x4961ab
mov eax, dword [ebp - 4]
call fcn.00404d04
cmp eax, 2
jne 0x496123
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
je 0x496144
mov eax, dword [ebp - 4]
call fcn.00404d04
cmp eax, 3
jne 0x49616b
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
jne 0x49616b
mov eax, dword [ebp - 4]
cmp word [eax + 4], 0x5c
jne 0x49616b
mov eax, dword [0x496280]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov al, byte [eax]
mov byte [ebp - 8], al
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
setne al
neg al
sbb ebx, ebx
jmp 0x49624f
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 4]
call fcn.00404cf4
push eax
call sub.kernel32.dll_FindFirstFileW
cmp eax, 0xffffffff
setne dl
neg dl
sbb ebx, ebx
test ebx, ebx
je 0x49624f
test byte [ebp - 0x258], 0x10
setne dl
neg dl
sbb ebx, ebx
push eax
call sub.kernel32.dll_FindClose_1
jmp 0x49624f
mov eax, dword [ebp - 4]
call fcn.00404d04
cmp eax, 2
jne 0x4961c2
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
je 0x4961e3
mov eax, dword [ebp - 4]
call fcn.00404d04
cmp eax, 3
jne 0x496207
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
jne 0x496207
mov eax, dword [ebp - 4]
cmp word [eax + 4], 0x5c
jne 0x496207
mov eax, dword [0x496280]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov al, byte [eax]
mov byte [ebp - 8], al
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
setne al
neg al
sbb ebx, ebx
jmp 0x49624f
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x39c]
mov edx, dword [ebp - 4]
call fcn.004046d0
mov eax, dword [ebp - 0x39c]
call fcn.00404908
push eax
call sub.kernel32.dll_FindFirstFileA_1
cmp eax, 0xffffffff
setne dl
neg dl
sbb ebx, ebx
test ebx, ebx
je 0x49624f
test byte [ebp - 0x398], 0x10
setne dl
neg dl
sbb ebx, ebx
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496277
lea eax, [ebp - 0x39c]
call fcn.0040441c
lea eax, [ebp - 4]
call fcn.00404b54
ret
Function at 0x4966dc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004050ac
xor eax, eax
push ebp
push 0x4967af
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x54d318], 0
je 0x496770
mov eax, dword [ebp - 4]
cmp word [eax], 0x5c
jne 0x49674d
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x5c
jne 0x49674d
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d04
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00404ea0
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x4967c4
call fcn.00404d70
jmp 0x49675d
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x4967dc
call fcn.00404d70
push ebx
mov eax, dword [ebp - 8]
call fcn.00404cf4
push eax
call sub.kernel32.dll_CreateDirectoryW
mov ebx, eax
jmp 0x49678c
push ebx
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.004046d0
mov eax, dword [ebp - 0x10]
call fcn.00404908
push eax
call sub.kernel32.dll_CreateDirectoryA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4967b6
lea eax, [ebp - 0x10]
call fcn.0040441c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b6c
ret

Function at 0x498c10
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x98], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x498d4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x498d64
call fcn.00404470
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x498d35
mov edi, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x90]
mov eax, dword [ebp - 0x84]
dec eax
je 0x498c9e
dec eax
jne 0x498d35
lea eax, [ebp - 0x98]
call fcn.0049a454
mov eax, dword [ebp - 0x98]
xor edx, edx
call fcn.00409528
mov edx, ebx
call fcn.004978a0
jmp 0x498d35
push ebx
mov dword [ebp - 0xa8], esi
mov byte [ebp - 0xa4], 0
mov dword [ebp - 0xa0], edi
mov byte [ebp - 0x9c], 0
lea edx, [ebp - 0xa8]
mov ecx, 1
mov eax, 0x498d74
call fcn.0040a528
cmp esi, 4
jne 0x498ce5
test edi, edi
jne 0x498ce5
mov eax, ebx
mov edx, 0x498d84
call fcn.00404710
jmp 0x498d35
cmp esi, 4
jne 0x498d11
cmp edi, 0xa
jne 0x498d11
cmp byte [ebp - 0x7f], 0x41
jne 0x498d03
mov eax, ebx
mov edx, 0x498d94
call fcn.00404710
jmp 0x498d35
mov eax, ebx
mov edx, 0x498da4
call fcn.00404710
jmp 0x498d35
cmp esi, 4
jne 0x498d29
cmp edi, 0x5a
jne 0x498d29
mov eax, ebx
mov edx, 0x498db4
call fcn.00404710
jmp 0x498d35
mov eax, ebx
mov edx, 0x498dc4
call fcn.00404710
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498d55
lea eax, [ebp - 0x98]
call fcn.0040441c
ret
Function at 0x49aec8
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004048f8
xor eax, eax
push ebp
push 0x49b070
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x114]
mov eax, dword [ebp - 4]
call fcn.0049b130
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
call fcn.004044b4
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov byte [ebp - 9], 0
cmp dword [ebp - 4], 0
je 0x49b040
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 4]
call fcn.00404960
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x49b040
xor edx, edx
push ebp
push 0x49b039
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49b022
xor edx, edx
push ebp
push 0x49b01b
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x18]
push 2
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x49affb
mov eax, ebx
cmp word [eax], 0x5a4d
sete byte [ebp - 9]
cmp byte [ebp - 9], 0
je 0x49affb
add ebx, dword [eax + 0x3c]
push 4
push ebx
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x49affb
cmp dword [ebx], 0x4550
sete byte [ebp - 9]
cmp byte [ebp - 9], 0
je 0x49affb
lea eax, [ebp - 0x110]
test eax, eax
je 0x49affb
lea eax, [ebp - 0x110]
mov ecx, 0xf8
mov edx, ebx
call fcn.00407964
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b022
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b040
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
cmp word [ebp - 0xf8], 0x20b
mov eax, dword [ebp - 8]
sete byte [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b077
lea eax, [ebp - 0x114]
call fcn.0040441c
lea eax, [ebp - 4]
call fcn.0040441c
ret