joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481478
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00481b34
test al, al
je 0x48158c
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa2], 0
jne 0x4814d3
mov edx, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
mov ecx, ebx
call fcn.00480a70
test al, al
je 0x4814c1
mov dword [ebp - 8], ebx
jmp 0x48158c
mov edx, 0x4815a0
mov eax, dword [ebp - 4]
call fcn.00480e80
jmp 0x48158c
mov eax, dword [ebp - 4]
call fcn.00480d40
xor eax, eax
push ebp
push 0x481585
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x14
call fcn.0040300c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x481537
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x481537
mov edx, 0x4815dc
mov eax, dword [ebp - 4]
call fcn.00480e80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
call fcn.0047e954
test al, al
je 0x481559
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x48156f
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.kernel32.dll_GetOverlappedResult
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48158c
mov eax, dword [ebp - 4]
call fcn.00480d4c
ret
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4815f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00481b34
test al, al
je 0x4816cc
mov eax, dword [ebp - 4]
call fcn.00480d58
xor eax, eax
push ebp
push 0x4816c5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x14
call fcn.0040300c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x481677
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x481677
mov edx, 0x4816e0
mov eax, dword [ebp - 4]
call fcn.00480e80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x9c]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
call fcn.0047e954
test al, al
je 0x481699
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x4816af
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.kernel32.dll_GetOverlappedResult
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4816cc
mov eax, dword [ebp - 4]
call fcn.00480d64
ret
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483b78
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x415d10]
call fcn.004051f4
xor eax, eax
push ebp
push 0x483cbc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x514e84], 0
jne 0x483bcb
mov ecx, dword [0x5167f8]
mov dl, 1
mov eax, dword [0x40804c]
call fcn.0040cfc4
call fcn.004040a4
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040300c
mov eax, ebx
call fcn.00404fac
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x483ccc
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004066c4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404fbc
test eax, eax
jle 0x483c63
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x483c5c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404984
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040496c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408f44
test eax, eax
jne 0x483c5c
mov ebx, 0x15
jmp 0x483c68
mov ebx, 0x10
jmp 0x483c68
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x514e84]
call fcn.00483ad0
mov eax, dword [ebp - 8]
call fcn.00483ad0
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004066dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483cc3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404728
lea eax, [ebp - 0x10]
mov edx, dword [0x415d10]
call fcn.004052c4
ret
Function at 0x488144
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48821c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x518d3c], 0
jne 0x488200
lea eax, [ebp - 4]
mov edx, 0x488234
call fcn.0040479c
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404bb4
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x488200
mov eax, ebx
call fcn.00402818
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4881f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4881e3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x488244
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4881e3
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x518d3c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488200
mov eax, dword [ebp - 0xc]
call fcn.00402838
ret
mov ebx, dword [0x518d3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x488223
lea eax, [ebp - 4]
call fcn.00404704
ret

Function at 0x48ec68
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], ebx
test ebx, ebx
jbe 0x48ecfc
xor eax, eax
push ebp
push 0x48ece6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0048ebcc
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], esi
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.version.dll_GetFileVersionInfoA
cmp eax, 1
sbb eax, eax
inc eax
mov edx, dword [ebp - 4]
mov byte [edx + 8], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48ecfc
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4b64dc
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4b6501
cmp dword [esp + 4], 5
jb 0x4b6501
mov al, 1
jmp 0x4b6503
xor eax, eax
add esp, 0x94
ret
Function at 0x4cdf03
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x516202
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4cdf5b
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x516223
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4cdf51
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4cdf5f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4f2e64
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x4f2ea8
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.00409a0c
add esp, 0x200
pop ebx
ret

Function at 0x5060b4
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffd8
mov ebx, edx
mov eax, dword [0x517034]
cmp dword [eax], 2
jne 0x50612e
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x50612e
lea eax, [esp + 0xc]
push eax
push 0x506144
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp eax, 1
sbb eax, eax
inc eax
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
mov edx, 0x10
xor ecx, ecx
mov dword [esp + 4], ecx
test al, al
je 0x50612e
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x1c]
push eax
push edx
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x28
pop ebx
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
nop
mov ebx, 0x40de38
mov ecx, 0x504c576d
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x40e31419
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401530
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ecx
push esi
push edi
push ebp
mov esi, eax
mov ebx, edx
push 0
mov eax, dword [0x40b020]
push eax
push 0
push esi
push 0
push 0
push 0
push 0
push 0x40000000
push 0x40120a
push 0x401200
push 0
call dword [sym.imp.USER32.DLL_CreateWindowExA]
push 0
mov edx, dword [0x40b020]
push edx
push 0
push esi
push 0
push 0
push 0
push 0
push 0x40000001
push 0x40120a
push 0x401200
push 0
mov dword [ebx + 0x3c], eax
call dword [sym.imp.USER32.DLL_CreateWindowExA]
mov dword [ebx + 0x40], eax
mov eax, ebx
call fcn.00401260
push 1
mov ecx, dword [ebx + 0x40]
push ecx
call dword [sym.imp.USER32.DLL_ShowWindow]
mov esi, dword [ebx + 0x40]
push esi
call dword [sym.imp.USER32.DLL_UpdateWindow]
push 1
mov edi, dword [ebx + 0x3c]
push edi
call dword [sym.imp.USER32.DLL_ShowWindow]
mov ebp, dword [ebx + 0x3c]
push ebp
call dword [sym.imp.USER32.DLL_UpdateWindow]
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x402330
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0xc
mov ebp, eax
mov edi, esp
mov esi, 0x4020d0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [eax + 0x28]
mov edi, dword [edi + 4]
push edi
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov esi, eax
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
push edi
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
push eax
push esi
mov edi, eax
call dword [sym.imp.GDI32.DLL_SelectObject]
mov dword [esp + 8], eax
lea eax, [ebp + 0x14]
mov ebx, esp
push eax
lea eax, [esp + 4]
mov edx, esi
push eax
lea ecx, [ebp + 0xc]
mov eax, dword [ebp + 0x28]
call fcn.004022b0
mov ecx, dword [esp + 8]
push ecx
push esi
call dword [sym.imp.GDI32.DLL_SelectObject]
push esi
call dword [sym.imp.GDI32.DLL_DeleteDC]
mov eax, dword [ebp + 0x28]
mov ebx, dword [eax]
push ebx
call dword [sym.imp.USER32.DLL_OpenClipboard]
call dword [sym.imp.USER32.DLL_EmptyClipboard]
push edi
push 2
call dword [sym.imp.USER32.DLL_SetClipboardData]
call dword [sym.imp.USER32.DLL_CloseClipboard]
add esp, 0xc
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x402800
Capabilities:
Read .ini file

Disassembly:
push ecx
push edx
push esi
push edi
mov edx, 0x104
mov eax, 0x40b024
mov esi, 0x40244b
mov edi, 0x40b024
call fcn.00403160
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x40283e
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x402826
pop edi
push edi
push 1
push 0x402443
xor eax, eax
push 0x402463
mov dword [0x40b000], eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
push edi
push 0xa
push 0x402432
push 0x402463
mov dword [0x40b004], eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
push edi
push 0
push 0x402457
push 0x402463
mov word [0x40b00c], ax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [0x40b008], eax
pop edi
pop esi
pop edx
pop ecx
ret
Function at 0x402a88
Capabilities:
Terminate process

Disassembly:
jmp 0x4035c0
push ebx
push ecx
push edx
push ebp
mov ebp, esp
sub esp, 8
mov eax, 1
call fcn.00403f10
mov eax, dword [0x40a0f0]
add eax, 3
and al, 0xfc
xor edx, edx
sub esp, eax
mov ecx, esp
mov ebx, dword [0x40a0f0]
mov eax, ecx
call fcn.00402a70
mov eax, dword [0x40a0f0]
mov dword [ecx + 0x104], eax
mov eax, ecx
mov edx, ecx
call fcn.00403fc0
lea eax, [ebp - 8]
call fcn.00403a80
mov ecx, dword [0x40a11c]
add ecx, 3
and cl, 0xfc
call fcn.00403ff0
cmp ecx, eax
jb 0x403652
xor eax, eax
mov ecx, dword [0x40a11c]
add eax, ecx
mov dword [0x40a120], eax
call fcn.00404010
push 0xa
mov eax, dword [0x40a0fc]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call fcn.00401160
jmp 0x404012
push ecx
call fcn.004040b5
mov eax, dword [0x40a11c]
add eax, 3
and al, 0xfc
sub esp, eax
mov eax, esp
jmp 0x403623
mov ecx, eax
call dword [0x40a150]
cmp dword [0x40b520], 0
je 0x40404f
cmp dword [0x40a0ec], 0
je 0x40403c
mov edx, 0xff
mov eax, 0x10
call dword [0x40a0ec]
call dword [0x40a150]
call dword [0x40a154]
mov eax, ecx
jmp fcn.00403ae0
mov edx, 0xff
mov eax, 0x10
call fcn.00403f60
jmp 0x40403c

Function at 0x403160
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push esi
push edi
push ebp
mov ebx, eax
mov esi, edx
push 0x403130
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ebp, eax
test eax, eax
je 0x40320b
push 0x40314a
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ebx
push 0
push 0
push 0x801a
push 0
call eax
test eax, eax
jl 0x4031fe
mov edi, ebx
sub ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x40313d
mov edx, ecx
sub ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 0xc]
cmp eax, esi
jae 0x4031fe
mov esi, 0x40313d
mov edi, ebx
push edi
sub ecx, ecx
dec ecx
mov al, 0
repne scasb al, byte es:[edi]
dec edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x4031e9
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x4031d1
pop edi
xor edx, edx
mov eax, ebx
call fcn.004036e0
test eax, eax
je 0x4031fe
mov eax, ebx
call fcn.00403710
push ebp
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x4037e0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x40b520], eax
mov dword [0x40a0a4], edx
call fcn.004051f0
xor eax, eax
mov dword [0x40bb44], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x40a135], al
shr eax, 0x10
mov word [0x40a137], ax
xor eax, eax
mov ax, word [0x40a137]
and edx, 0xffff
mov dword [0x40a139], eax
xor eax, eax
sar edx, 8
mov al, byte [0x40a135]
and edx, 0xff
mov dword [0x40a13d], eax
xor eax, eax
mov al, dl
mov byte [0x40a136], dl
mov dword [0x40a141], eax
mov eax, dword [0x40a13d]
mov edx, dword [0x40a141]
shl eax, 8
or eax, edx
mov dword [0x40a145], eax
cmp byte [0x40a135], 4
jae 0x403907
mov eax, 0x403778
push eax
xor edx, edx
push 0x4037a5
mov dword [0x40a131], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
test eax, eax
je 0x40389a
call edx
mov dword [0x40a131], eax
push 0x104
push 0x40b524
push 0
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x40b628
xor eax, eax
mov dword [0x40a100], 0x40b524
call fcn.00405320
mov dword [0x40a10c], 0x40b628
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.004053c0
mov edx, eax
mov bl, byte [eax]
mov dword [0x40b518], eax
cmp bl, 0x22
je 0x403911
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x402dd1], 2
je 0x403929
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x402dd1], 2
je 0x403930
inc eax
jmp 0x4038f7
mov eax, 0x40378e
jmp 0x403872
inc eax
cmp bl, byte [eax]
je 0x403921
cmp byte [eax], 0
je 0x403921
inc eax
cmp byte [eax], 0x22
jne 0x403916
cmp byte [eax], 0
je 0x4038f7
inc eax
jmp 0x4038f7
test dl, dl
je 0x4038f7
inc eax
jmp 0x4038ea
mov dword [0x40a0fc], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x4039a6
call fcn.00405400
mov edx, eax
mov bx, word [eax]
mov dword [0x40b51c], eax
cmp bx, 0x22
je 0x403979
xor eax, eax
mov ax, word [edx]
call fcn.00405427
test eax, eax
je 0x40399b
xor eax, eax
mov ax, word [edx]
call fcn.00405427
test eax, eax
je 0x4039ab
add edx, 2
jmp 0x403966
lea edx, [eax + 2]
cmp bx, word [edx]
je 0x403990
cmp word [edx], 0
je 0x403990
add edx, 2
cmp word [edx], 0x22
jne 0x403981
cmp word [edx], 0
je 0x403966
add edx, 2
jmp 0x403966
cmp word [edx], 0
je 0x403966
add edx, 2
jmp 0x403958
mov edx, 0x4037b2
mov dword [0x40a108], edx
test edi, edi
jne 0x4039be
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x40b830
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x40b934
mov eax, esi
mov dword [0x40a104], 0x40b830
call fcn.00405320
mov dword [0x40a110], 0x40b934
mov eax, 1
pop edi
pop esi
pop ecx
ret

Function at 0x403e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edx
push 0x40
push 0x1000
mov edx, dword [eax]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
pop edx
pop ecx
ret
Function at 0x404e80
Capabilities:
Get file attributes

Disassembly:
push ecx
push edx
push esi
sub esp, 0x140
mov ecx, eax
cmp word [0x40a137], 0x8000
jae 0x404e9f
cmp byte [0x40a135], 4
jae 0x404eee
mov dl, 0x2a
mov esi, ecx
mov al, byte [esi]
cmp al, dl
je 0x404ebb
cmp al, 0
je 0x404eb9
inc esi
mov al, byte [esi]
cmp al, dl
je 0x404ebb
inc esi
cmp al, 0
jne 0x404ea3
sub esi, esi
test esi, esi
jne 0x404edf
mov dl, 0x3f
mov esi, ecx
mov al, byte [esi]
cmp al, dl
je 0x404edb
cmp al, 0
je 0x404ed9
inc esi
mov al, byte [esi]
cmp al, dl
je 0x404edb
inc esi
cmp al, 0
jne 0x404ec3
sub esi, esi
test esi, esi
je 0x404ef7
mov eax, 0xffffffff
add esp, 0x140
pop esi
pop edx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
jmp 0x404ee4
mov edx, esp
mov eax, ecx
call fcn.00406900
cmp eax, 0xffffffff
je 0x404ee4
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp]
add esp, 0x140
pop esi
pop edx
pop ecx
ret

Function at 0x4073e0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 8
mov esi, eax
mov ebp, edx
mov edi, ebx
test eax, eax
jl 0x407474
cmp eax, dword [0x40a29c]
jae 0x407474
call fcn.00405120
mov edx, eax
mov dword [esp + 4], eax
mov eax, esi
xor ebx, ebx
call fcn.00406930
test al, 0x80
je 0x407438
mov eax, esi
call dword [0x40a0b0]
push 2
push 0
push 0
push edx
mov ebx, 1
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x407488
push 0
lea eax, [esp + 4]
push eax
push edi
push ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x407492
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
cmp ebx, 1
jne 0x407465
mov eax, esi
call dword [0x40a0b4]
mov eax, edx
call fcn.00404f20
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret
call dword [0x40a0a8]
mov dword [eax + 4], 4
mov eax, 0xffffffff
jmp 0x40746c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x40745d
cmp edi, dword [esp]
je 0x4074a4
call dword [0x40a0a8]
mov dword [eax + 4], 0xc
cmp ebx, 1
jne 0x4074b1
mov eax, esi
call dword [0x40a0b4]
mov eax, dword [esp]
add esp, 8
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x7f6dd4
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dx, word [esp + 3]
bts eax, ecx
jmp 0x7f6e44
jge 0x7f6e00
xchg ecx, eax
mov edx, ecx
call fcn.007f6e0e
add byte [edi + 0xf66242c], 0xb3
ror byte [ebp + 0x9d14], 1
add byte [eax], al
mov edx, dword [esp]
jmp 0x7f6e94
mov ah, byte [esp]
inc dh
push dword [esp]
ret 4

Function at 0x7f7212
Capabilities:
Execute anti-debugging instructions

Disassembly:
setno dl
lea edx, [edi + 0x75]
mov edx, dword [esp + 0x13]
jmp 0x7f7252
jmp 0x7f726b
mov dx, si
jmp 0x7f73cb
lea esp, [esp + 0x2c]
sub al, 0xa
mov dx, 0xb2fc
bsr edx, edx
ja 0x7f7239
mov dh, byte [esp]
jmp 0x7f723b
mov dh, byte [esp]
mov dx, si
jmp 0x7f73cb
bswap edx
mov dx, bp
mov dx, 0x70b6
jmp 0x7f72a0
neg edx
rol al, 0
lea edx, [ecx + edi]
shr dx, cl
jmp 0x7f732c
inc dl
jmp 0x7f7290
mov edx, ecx
mov ah, byte [esp]
lea eax, reloc.WINMM.dll_midiStreamStop
jmp 0x7f72dc
mov dl, 0xdd
jmp 0x7f7372
dec ebp
lea eax, [edi*4]
mov eax, dword [esp]
mov eax, dword [esp]
mov eax, ebx
jmp 0x7f7315
mov edx, ecx
mov ah, byte [esp]
lea eax, reloc.WINMM.dll_midiStreamStop
jmp 0x7f72dc
sub esp, 0x1c
jmp 0x7f7333
rdtsc
xchg al, ah
bswap edx
clc
jae 0x7f72ff
jb 0x7f7349
cmp bl, al
push ebx
lds edi, ss:[esi + eax - 0x4f]
mov al, 0xb3
stosb byte es:[edi], al
lds edi, [edx + 0x3f]
jp 0x7f736d
inc edx
mov dh, ah
jmp 0x7f72d5
lea esp, [esp + 0x1c]
add cl, 0xa0
dec ax
jno 0x7f734e
shl dword [eax + reloc.WINMM.dll_midiStreamStop], 0x70
push ss
jo 0x7f7356
jl 0x7f7338
add edi, esi
dec edi
mov ds, word [bx + di]
sub esp, 0x1c
jmp 0x7f7333
xchg dx, ax
jmp 0x7f739c
xchg dx, ax
mov eax, 0x74dcc0bf
mov eax, ecx
btr ax, bx
jmp 0x7f7383
inc edx
mov dh, ah
mov dl, 0xdd
add bl, al
rcr dh, 6
js 0x7f72be
jns 0x7f72f2
neg cl
lea eax, [ebp*4]
sub esp, 1
jnp 0x7f73a9
jp 0x7f73b2
mov eax, dword [ecx]
xchg ecx, eax
lock add esi, dword [edx - reloc.WINMM.dll_midiStreamStop]
mov edi, 0x8b74dcc0
shl dword [esi + 0xf], 0xb3
fsubr st(3)
fimul dword [edx + reloc.WINMM.dll_midiStreamStop]
xchg ebp, eax
add al, 0xb7
sahf
mov eax, 0x74dcc0bf
mov eax, ecx
btr ax, bx
jmp 0x7f7383
mov dh, byte [esp]
jmp 0x7f7400
mov dh, byte [esp]
mov dx, 0x2343
lea esp, [esp + 1]
jmp 0x7f7408
xor al, 0x2c
cmc
jp 0x7f72ba
inc dl
bswap edx
mov dx, bp
mov dx, 0x70b6
neg edx
jmp 0x7f72a2
neg ax
jl 0x7f7422
lea eax, [edi*4]
jmp 0x7f7429
mov dx, 0x2343
lea esp, [esp + 1]
neg cl
jmp 0x7f73e6
lea eax, [ecx*4]
xchg edx, eax
push esi
rdtsc
mov dx, si
jmp 0x7f7491
lea eax, [edi*4]
xor cl, 0x32
jmp 0x7f740c
bswap eax
mov edx, ecx
sub esp, 0x12
je 0x7f7445
jne 0x7f7475
pop ebx
iretd
push dword [esp + 0xd]
pop dword [esp + 5]
lea esp, [esp + 2]
jmp 0x7f75b6
mov eax, dword [esp]
lea esp, [esp + 4]
sub cl, 0x56
mov ax, bp
mov edx, 0x2df1f9a0
jmp 0x7f7462