joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10192c00
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101b6f58
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x10192c32
call fcn.1018e300
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x10192c43
mov ecx, SysReAllocString
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x10192c98
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x10192c7e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x10192dc4
cmp dword [esp + 0x18], ebx
jne 0x10192c98
cmp dword [esp + 0x14], ebx
je 0x10192dc4
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x10192ca9
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.101967a2
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x10192cef
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x10192cef
call fcn.10115150
test eax, eax
je 0x10192cef
push 0x101f1edc
lea ecx, [esp + 0x14]
call fcn.10196bcc
push ebx
lea ecx, [esp + 0x14]
call fcn.10196e62
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x10192d9e
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x10192d2b
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x10192d9e
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x10192d79
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x10192d7c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x10192d74
mov dword [esi + 0x10], ebx
jmp 0x10192d7c
mov dword [esi + 0x10], ecx
jmp 0x10192d7c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.10196a35
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.10196a35
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10192c1a
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101b6f58
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x10192c32
call fcn.1018e300
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x10192c43
mov ecx, SysReAllocString
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x10192c98
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x10192c7e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x10192dc4
cmp dword [esp + 0x18], ebx
jne 0x10192c98
cmp dword [esp + 0x14], ebx
je 0x10192dc4
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x10192ca9
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.101967a2
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x10192cef
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x10192cef
call fcn.10115150
test eax, eax
je 0x10192cef
push 0x101f1edc
lea ecx, [esp + 0x14]
call fcn.10196bcc
push ebx
lea ecx, [esp + 0x14]
call fcn.10196e62
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x10192d9e
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x10192d2b
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x10192d9e
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x10192d79
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x10192d7c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x10192d74
mov dword [esi + 0x10], ebx
jmp 0x10192d7c
mov dword [esi + 0x10], ecx
jmp 0x10192d7c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.10196a35
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.10196a35
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10197e3b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x10197e5d
cmp dword [edi + 0x3c], 0
jne 0x10197e5d
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.101a322a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.10197e9c
pop edi
pop esi
pop ebx
ret 8

Function at 0x101995a1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x101995d9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10196ef3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10196eca
jmp 0x101995e5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1019b3a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1019b3e8
call fcn.101a322a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x1019b3e8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1019b3df
xor eax, eax
jmp 0x1019b3f0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1019b3f6
pop edi
pop esi
pop ebx
ret 4
Function at 0x40d15a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407e6b
mov dword [ebp - 0x14], eax
cmp dword [0x446d5c], esi
jne 0x40d24d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d1da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d32d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d32d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d32d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x446d5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x446d60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x446d64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x446d6c], eax
test eax, eax
je 0x40d24a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x446d68], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d272
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d265
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d287
push 4
pop eax
jmp 0x40d32f
cmp dword [ebp - 0x14], esi
je 0x40d287
push dword [0x446d5c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d26c
mov eax, dword [0x446d68]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d2e5
cmp dword [0x446d6c], edi
je 0x40d2e5
push eax
call ebx
push dword [0x446d6c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d2e5
test eax, eax
je 0x40d2e5
call ecx
test eax, eax
je 0x40d2da
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d2da
test byte [ebp - 8], 1
jne 0x40d2e5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d315
mov eax, dword [0x446d60]
cmp eax, edi
je 0x40d312
push eax
call ebx
test eax, eax
je 0x40d312
call eax
mov esi, eax
test esi, esi
je 0x40d312
mov eax, dword [0x446d64]
cmp eax, edi
je 0x40d312
push eax
call ebx
test eax, eax
je 0x40d312
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x446d5c]
call ebx
test eax, eax
je 0x40d32d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d32f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004043b8
mov esp, ebp
pop ebp
ret
Function at 0x410000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x420059]
shl eax, 2
mov dword [0x42005d], eax
push edi
push ecx
xor eax, eax
mov edi, 0x42109c
mov ecx, 0x421728
cmp ecx, edi
jbe 0x410024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
mov edx, dword fs:[4]
mov eax, dword [edx - 8]
mov dword [0x420061], eax
mov eax, dword [edx - 4]
mov dword [0x420065], eax
sub edx, 4
mov dword [0x421308], edx
sub edx, 4
cmp edx, esp
jae 0x41004e
mov esp, edx
push 0
call fcn.004133c7
pop ecx
push 0x42002c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x42006a], eax
push 0
jmp fcn.00415424

Function at 0x410334
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x84], 0x4201e0
mov dword [ebp - 0x84], 0x4201e4
mov dword [ebp - 0x84], 0x4201ec
mov byte [ebp - 0x80], 0
push 0x80
lea eax, [ebp - 0x80]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x84]
call dword [eax]
pop ecx
push eax
call fcn.0041463c
pop ecx
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x84]
call dword [eax]
pop ecx
push eax
push ebx
mov eax, dword [ebx]
call dword [eax + 4]
add esp, 8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410541
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push 0x44
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00411804
add esp, 0xc
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], 5
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x410591
xor eax, eax
jmp 0x4105b1
push 0xffffffffffffffff
push dword [ebp - 0x54]
call sub.KERNEL32.dll_WaitForSingleObject
cmp eax, 0xffffffff
jne 0x4105a4
xor eax, eax
jmp 0x4105b1
push dword [ebp - 0x54]
call sub.KERNEL32.dll_CloseHandle
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x410af5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
push edi
mov edi, 0x42009a
mov ebx, 2
mov esi, dword [0x421215]
add esi, esi
lea esi, [esi + esi*4]
mov eax, ebx
add al, 0x61
mov byte [edi], al
push edi
call sub.KERNEL32.dll_GetDriveTypeA
sub eax, 2
je 0x410b2f
dec eax
sub eax, 2
jb 0x410b3c
jmp 0x410b9a
cmp esi, 0x800
jae 0x410b3c
mov esi, 0x800
lea eax, [ebp - 4]
push eax
push ebx
call fcn.0041129b
add esp, 8
test eax, eax
je 0x410b9a
cmp esi, dword [ebp - 4]
jae 0x410b9a
mov eax, ebx
add al, 0x61
mov byte [edi], al
push 0x420170
mov dword [ebp - 0xc], 0x4201e0
mov dword [ebp - 0xc], 0x4201dc
mov dword [ebp - 8], edi
lea eax, [ebp - 0xc]
push eax
push 0x42113b
call fcn.00410297
add esp, 0xc
push 0x42113b
call fcn.0041018e
pop ecx
sub eax, 2
jb 0x410b93
je 0x410b9a
jmp 0x410b9a
mov eax, 1
jmp 0x410bc8
inc ebx
cmp ebx, 0x1a
jl 0x410b0b
push esi
push 0x420176
lea eax, [ebp - 0x8c]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
lea eax, [ebp - 0x8c]
push eax
call fcn.00411501
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41129b
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, dword [ebp + 0xc]
mov al, byte [ebp + 8]
add al, 0x61
mov byte [0x4200c0], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4200c0
call sub.KERNEL32.dll_GetDiskFreeSpaceA
test eax, eax
jne 0x4112d1
xor eax, eax
jmp 0x411305
mov eax, dword [ebp - 4]
mov dword [ebx], eax
mov eax, dword [ebp - 8]
imul eax, dword [ebx]
mov dword [ebx], eax
mov ecx, 0x80
mov eax, dword [ebx]
xor edx, edx
div ecx
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
imul eax, dword [ebx]
mov dword [ebx], eax
mov ecx, 8
mov eax, dword [ebx]
xor edx, edx
div ecx
mov dword [ebx], eax
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4115a6
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x200e0
lea eax, [ebp - 4]
push eax
call fcn.00411527
add esp, 8
test eax, eax
je 0x4115d2
push 1
push 0x4201c0
lea eax, [ebp - 4]
push eax
call fcn.0041154f
add esp, 0xc
push 0
push 2
call sub.USER32.dll_ExitWindowsEx
lea eax, [ebp - 4]
push eax
call fcn.00411540
pop ecx
pop ecx
pop ebp
ret
Function at 0x413f88
Capabilities:
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x104
call fcn.004149c8
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x413fae
mov dword [0x420f98], 8
or eax, 0xffffffff
jmp 0x41401e
mov byte [ebp - 4], 0x3d
mov al, byte [ebp + 8]
add al, 0x40
mov byte [ebp - 3], al
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push ebx
lea eax, [ebp - 4]
push eax
call sub.KERNEL32.dll_GetEnvironmentVariableA
test eax, eax
jne 0x414001
mov al, byte [ebp - 3]
mov byte [ebx], al
mov byte [ebx + 1], 0x3a
mov byte [ebx + 2], 0x5c
mov byte [ebx + 3], 0
push ebx
lea eax, [ebp - 4]
push eax
call sub.KERNEL32.dll_SetEnvironmentVariableA
dec eax
je 0x414001
push ebx
call fcn.0041488c
pop ecx
call fcn.00414470
jmp 0x41401e
push ebx
call sub.KERNEL32.dll_SetCurrentDirectoryA
dec eax
je 0x414013
call fcn.00414470
mov esi, eax
jmp 0x414015
xor esi, esi
push ebx
call fcn.0041488c
pop ecx
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x414484
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_CreateDirectoryA
dec eax
je 0x4144b2
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
jne 0x4144ab
push 5
call fcn.0041440c
pop ecx
pop ebp
ret
call fcn.00414470
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x414ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
mov esi, dword [ebp + 8]
cmp byte [0x420069], 0
je 0x414f53
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea eax, [ebp - 0x54]
push eax
call fcn.0041197c
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x414f3e
push 0x3a
lea eax, [ebp - 0x54]
push eax
call fcn.0041197c
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x414f3e
lea ebx, [ebp - 0x54]
jmp 0x414f3f
inc ebx
call fcn.00414ea8
or eax, 0x10
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x414f97
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x420fbc
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [ebp - 4]
push eax
push esi
call fcn.004118cc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x420fbf
push ebx
call sub.KERNEL32.dll_WriteFile
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x438c9b
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop ebx
sub edi, 1
sub esp, 4
mov dword [esp], ecx
pop edi
sub edi, ecx
call fcn.00438cdf
inc edi
mov ecx, 0x8c490972
xor dword [edx], ebx
push edi
mov edi, dword [esp]
add esp, 4
inc edx
sub edi, 0xfc03c576
inc ecx
cmp edx, eax
jne fcn.00438c9b
add edi, ecx
sub edi, edi
ret

Function at 0x16a59f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.FKP1
lea edi, [esi - 0x1272000]
push edi
or ebp, 0xffffffff
jmp 0x16a5a12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a5a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a08
mov eax, 1
add ebx, ebx
jne 0x16a5a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a5a3c
jne 0x16a5a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a5b
dec eax
add ebx, ebx
jne 0x16a5a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a5a20
add ebx, ebx
jne 0x16a5a57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x16a5aad
xor ecx, ecx
sub eax, 3
jb 0x16a5a73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a5ae2
sar eax, 1
mov ebp, eax
jmp 0x16a5a7e
add ebx, ebx
jne 0x16a5a7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
inc ecx
add ebx, ebx
jne 0x16a5a8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a5a4c
add ebx, ebx
jne 0x16a5a99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a5a8e
jne 0x16a5aaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a5a8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x16a5acc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a5abe
jmp 0x16a5a0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a5acc
add edi, ecx
jmp 0x16a5a0e
pop esi
mov edi, esi
mov ecx, 0x34f3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a5aea
cmp byte [edi], 0x16
jne 0x16a5aea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x16a5aef
lea edi, [esi + 0x12a2000]
mov eax, dword [edi]
or eax, eax
je 0x16a5b5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a67a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a6890]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a5b1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a6894]
or eax, eax
je 0x16a5b58
mov dword [ebx], eax
add ebx, 4
jmp 0x16a5b39
call dword [esi + 0x12a68a4]
mov ebp, dword [esi + 0x12a6898]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x16a5b92
sub esp, 0xffffff80
jmp 0x46c1ac
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40288e
pop dword [ebp - 0x20]
mov eax, 0xd197064e
add eax, 0x2ea92240
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x41243b30
sub dword [ebp - 0x30], 0xf2d1f5e5
mov dword [ebp - 0x2c], 0x61401ef8
sub dword [ebp - 0x2c], 0x2f0cd2b3
mov dword [ebp - 0x28], 0xc51a337e
add dword [ebp - 0x28], 0x873210b0
mov dword [ebp - 0x24], 0x3dfb7fa4
add dword [ebp - 0x24], 0xc204805c
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x2513b898
add dword [ebp - 0x30], 0x4f5eb0be
mov dword [ebp - 0x2c], 0x4f1e7da0
sub dword [ebp - 0x2c], 0xdb21c2b
mov dword [ebp - 0x28], 0x42edf300
add dword [ebp - 0x28], 0x2081796c
mov dword [ebp - 0x24], 0x72cbe83
add dword [ebp - 0x24], 0xf8d3417d
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x38bee
push 0
call eax
mov ecx, 0x80c1a37f
sub ecx, 0x80c152e6
mov edx, eax
mov esi, 0xe40738ee
sub esi, 0xe3c638ee
add esi, dword [ebp - 0x20]
mov ebx, 0x6774196f
sub ebx, 0xd109f229
mov dword [ebp - 8], 0x8e120a9c
mov edi, dword [esi]
mov dword [ebp - 8], 0x1b31ea6f
xor edi, ebx
xor dword [ebp - 0x1c], edi
mov dword [edx], edi
sub dword [ebp - 4], 0x2e4cba5f
add edx, 4
add esi, 4
loop 0x4029a6
add eax, 0x626191ac
add eax, 0x9d9fa38b
xor ebx, ebx
add ebx, eax
add eax, 0x47afa0d1
add eax, 0xb8505f34
mov ecx, 0x663e9aaa
add ecx, 0x9a016556
add ecx, dword [ebp - 0x20]
call ebx
leave
ret