joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014e2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
cmp dword [ebp + 8], 0xb0
jae 0x401580
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x118]
push eax
call fcn.004014e2
add esp, 8
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 3
div ecx
test edx, edx
jne 0x40153c
mov byte [ebp - 0x114], 0
jmp 0x40157e
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 4
div ecx
test edx, edx
jne 0x401560
lea edx, [ebp - 0x104]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp 0x40157e
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, 0xd
div ecx
test edx, edx
jne 0x40157e
mov byte [ebp - 0x112], 0x4d
mov byte [ebp - 0x111], 0
jmp 0x401589
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x401e10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 1
push 0xd
call fcn.004019b2
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x401e73
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x10], eax
push 0xe6
push 0xb4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp - 4], 0
je 0x401e86
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x18], eax
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0
je 0x401ea6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov eax, dword [ebp - 8]
jmp 0x401f89
mov dword [ebp - 0x614], 0
mov edx, dword [str.winexe.cmd]
mov dword [ebp - 0x60c], edx
mov eax, dword [0x435118]
mov dword [ebp - 0x608], eax
mov cx, word [0x43511c]
mov word [ebp - 0x604], cx
mov dl, byte [0x43511e]
mov byte [ebp - 0x602], dl
mov eax, dword [str.vlgbl]
mov dword [ebp - 0x600], eax
mov cx, word [0x435124]
mov word [ebp - 0x5fc], cx
cmp dword [ebp - 0x20], 0xffffffff
jne 0x401f07
xor eax, eax
jmp 0x401f89
push 0
lea edx, [ebp - 0x61c]
push edx
push 0x5d8
lea eax, [ebp - 0x5f8]
push eax
mov ecx, dword [ebp - 0x614]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401f64
push 2
push 0
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x618], eax
push 0
lea eax, [ebp - 0x610]
push eax
mov ecx, dword [ebp - 0x61c]
push ecx
lea edx, [ebp - 0x5f8]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x61c], 0x5d8
je 0x401f07
mov ecx, dword [ebp - 0x614]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405c10
Capabilities:
Copy file
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x435fd0], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x435f6c
push 0x435f08
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405c58
xor eax, eax
jmp 0x405c81
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x1006c400]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x1006d750]
mov eax, dword [0x1006d74c]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete cl
and cl, 1
mov byte [ebp - 0x1a], cl
cmp eax, 0xa
setl al
and al, 1
mov byte [ebp - 0x19], al
mov dword [ebp - 0x20], 0xa1b1f58
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
sub eax, 0xc77795a5
je 0x1000111c
jmp 0x1000106d
mov eax, dword [ebp - 0x2c]
sub eax, 0xa1b1f58
je 0x100010d1
jmp 0x10001080
mov eax, dword [ebp - 0x2c]
sub eax, 0x163321b4
je 0x1000118d
jmp 0x10001093
mov eax, dword [ebp - 0x2c]
sub eax, 0x19a1bca6
je 0x10001199
jmp 0x100010a6
mov eax, dword [ebp - 0x2c]
sub eax, 0x4b08224f
je 0x100011fc
jmp 0x100010b9
mov eax, dword [ebp - 0x2c]
sub eax, 0x66c8b5e9
je 0x100011bb
jmp 0x100010cc
jmp 0x10001203
mov bl, byte [ebp - 0x1a]
mov dh, byte [ebp - 0x19]
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0x4b08224f
mov ecx, 0xc77795a5
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x10001203
push eax
mov eax, esp
mov dword [ebp - 0x18], eax
mov ecx, dword [0x1006d750]
mov eax, dword [0x1006d74c]
xor esi, esi
sub esi, 1
mov edx, ecx
add edx, esi
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0x4b08224f
mov ecx, 0x163321b4
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x20], eax
jmp 0x10001203
mov dword [ebp - 0x20], 0x19a1bca6
jmp 0x10001203
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
push eax
mov eax, esp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov dword [ebp - 0x20], 0x66c8b5e9
jmp 0x10001203
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
mov ecx, dword [edx]
mov edi, dword [esi]
not byte [edi]
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
add byte [edi], 0x47
sub byte [edi], 0x25
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
imul byte [edi]
inc edi
loop 0x100011cd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10017710
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x20], 0xc77795a5
jmp 0x10001057
Function at 0x1001aae3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001ab22
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ab22
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ab22
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001ab22
cmp dword [ecx + 0x74], 0xe
jbe 0x1001ab22
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001d79f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001d83c
push ebx
push esi
call fcn.1001d768
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001d6fc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001d7e9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d83b
push edi
push eax
call fcn.1001e75a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001d809
call fcn.1001c244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d83a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d6fc
add esp, 0x20
test eax, eax
jne 0x1001d828
push edi
call fcn.1001c244
jmp 0x1001d830
push ebx
call fcn.1001c244
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001daa9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025cc8
push 0x10025cc0
push str.FlsAlloc
push 0x1f
call fcn.1001d9c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001dadd
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
jmp 0x1001dae3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001db27
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025cd8
push 0x10025cd0
push str.FlsGetValue
push 0x21
call fcn.1001d9c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001db5e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001db66
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10025ce0
push 0x10025cd8
push str.FlsSetValue
push 0x22
call fcn.1001d9c5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001dba0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002414c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10023220
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002324d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002324d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4019f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x404a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
or eax, eax
jne 0x401a9a
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004045b6
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
or esi, esi
je 0x401a81
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x401a81
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00404538
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401cb0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 8

Function at 0x402f40
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x7a
xor eax, eax
lea edi, [esi + 0x41]
mov dword [esp + 0xc], 0x94
rep stosd dword es:[edi], eax
mov ecx, 0x24
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
mov dword [esi + 0x22c], ebx
mov dword [esi + 0x230], 1
mov dword [esi + 0x234], 1
mov dword [esi + 0x274], ebx
mov dword [esi + 0x278], 1
mov dword [esi + 0x238], ebx
mov dword [esi + 0x258], ebx
mov dword [esi + 0x270], ebx
mov dword [esi + 0x240], ebx
mov dword [esi + 0x27c], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x1c], 2
jne 0x402fe2
cmp dword [esp + 0x10], 5
jb 0x402fe2
mov eax, 1
pop edi
mov dword [esi + 0x23c], eax
pop esi
pop ebx
add esp, 0x94
ret
mov dword [esi + 0x23c], ebx
pop edi
pop esi
pop ebx
add esp, 0x94
ret
Function at 0x404786
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405e58
push 0x40490c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40770c], 0xffffffff
or dword [0x407710], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x407700]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4076fc]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x407708], eax
call fcn.0040490b
cmp dword [0x4075c0], ebx
jne 0x404809
push 0x404908
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004048f6
push 0x407024
push 0x407020
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4076f8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x4076f4]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40701c
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x40489c
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x404870
cmp al, 0x22
jne 0x404862
cmp byte [esi], 0x22
jne 0x404879
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x404883
cmp al, 0x20
jbe 0x404875
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4048a7
movzx eax, word [ebp - 0x2c]
jmp 0x4048aa
cmp byte [esi], 0x20
jbe 0x404879
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40489c
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x403746
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov edx, dword [ecx + 4]
push esi
mov dword [ebp - 0x14], edx
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
push edi
mov edi, 0xc6ef3720
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x24], 0x9e3779b9
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0x20
and dword [0x599be0], 0
lea ecx, [edi + eax]
mov edx, eax
shr edx, 5
add edx, dword [ebp - 0x18]
shl eax, 4
add eax, dword [ebp - 0x20]
mov dword [ebp - 4], ecx
xor edx, eax
xor edx, ecx
push edx
lea eax, [ebp - 8]
push eax
call fcn.004036d2
mov esi, dword [ebp - 8]
shl esi, 4
cmp dword [0x59f260], 0x78c
jne 0x4037f4
push 0
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x830]
push eax
push 0x401290
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
or dword [0x599bec], 0xffffffff
mov eax, ecx
shr eax, 5
add eax, dword [ebp - 0x14]
add esi, edx
xor eax, esi
xor eax, dword [ebp - 4]
mov dword [0x599be8], 0xff6b3619
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp + 8], eax
and dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x24]
add dword [ebp + 0xc], eax
sub edi, dword [ebp + 0xc]
dec dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], edi
jne 0x403790
pop edi
pop esi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
pop ebx
leave
ret 8

Function at 0x403854
Capabilities:
Copy file
Get thread local storage value
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
xor esi, esi
cmp dword [0x59f260], 0x516
jne 0x403877
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
mov eax, dword [ebp + 0xc]
shr eax, 3
cmp eax, esi
jbe 0x4038de
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, eax
cmp dword [0x59f260], 0xb7d
jne 0x4038a0
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
cmp dword [0x59f260], 0x1c
jne 0x4038cd
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push dword [ebp + 0x10]
push edi
call fcn.00403746
add edi, 8
dec ebx
jne 0x403888
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x4038e3
Capabilities:
Connect pipe
Get common file path
Get disk information
Get uefi variable
Manipulate console buffer
Read pipe
Set uefi variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d28
call fcn.00406390
cmp dword [0x59f260], 0x37
jne 0x403a3f
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x2528]
push eax
push esi
push esi
push 0x4012f4
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x528]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push 0x401328
push 0x401340
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
push esi
lea eax, [ebp - 0xd28]
push eax
push esi
call edi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push esi
call dword [sym.imp.KERNEL32.dll_CreateMemoryResourceNotification]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push esi
lea eax, [ebp - 0x1528]
push eax
push esi
call edi
push dword [ebp + 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
lea eax, [ebp - 0x2128]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x401390
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push esi
push 0x4013b0
push 0x401444
call dword [sym.imp.KERNEL32.dll_SetFirmwareEnvironmentVariableW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFlags]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push esi
lea eax, [ebp - 0x2d28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push esi
push esi
push esi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push esi
lea eax, [ebp - 0x1928]
push eax
push 0x40146c
push 0x4014ac
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
pop edi
pop esi
mov eax, dword [ebp + 8]
mov ecx, dword [0x59f264]
mov cl, byte [ecx + eax + 0x38d6]
mov edx, dword [0x599bdc]
mov byte [edx + eax], cl
leave
ret 4
Function at 0x407129
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446f00]
jne 0x407133
repz ret
jmp fcn.0040d27c

Function at 0x40e85b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407faf
and dword [ebp - 4], 0
cmp dword [0x59fe5c], 0
mov ebx, eax
jne 0x40e90c
push 0x402fb4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e9bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402fa8
push edi
call esi
test eax, eax
je 0x40e9bd
push eax
call fcn.00407f3d
mov dword [esp], 0x402f98
push edi
mov dword [0x59fe5c], eax
call esi
push eax
call fcn.00407f3d
mov dword [esp], 0x402f84
push edi
mov dword [0x59fe60], eax
call esi
push eax
call fcn.00407f3d
mov dword [esp], 0x402f68
push edi
mov dword [0x59fe64], eax
call esi
push eax
call fcn.00407f3d
pop ecx
mov dword [0x59fe6c], eax
test eax, eax
je 0x40e90c
push 0x402f50
push edi
call esi
push eax
call fcn.00407f3d
pop ecx
mov dword [0x59fe68], eax
mov eax, dword [0x59fe68]
cmp eax, ebx
je 0x40e964
cmp dword [0x59fe6c], ebx
je 0x40e964
push eax
call fcn.00407fb8
push dword [0x59fe6c]
mov esi, eax
call fcn.00407fb8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e964
test edi, edi
je 0x40e964
call esi
test eax, eax
je 0x40e95b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e95b
test byte [ebp - 0xc], 1
jne 0x40e964
or dword [ebp + 0x10], 0x200000
jmp 0x40e99d
mov eax, dword [0x59fe60]
cmp eax, ebx
je 0x40e99d
push eax
call fcn.00407fb8
pop ecx
test eax, eax
je 0x40e99d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e99d
mov eax, dword [0x59fe64]
cmp eax, ebx
je 0x40e99d
push eax
call fcn.00407fb8
pop ecx
test eax, eax
je 0x40e99d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x59fe5c]
call fcn.00407fb8
pop ecx
test eax, eax
je 0x40e9bd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e9bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0xd786326
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x513400f
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219