joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x40893f
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop eax
sub edx, edx
sub ebx, 0xcffd67ca
call fcn.0040896b
add ebx, ebx
xor dword [esi], eax
add esi, 1
mov edx, 0xe2473407
push edx
pop ebx
cmp esi, ecx
jne fcn.0040893f
inc ebx
ret
Function at 0x42d070
Capabilities:
Enumerate processes

Disassembly:
push esi
push ebx
sub esp, 0x250
mov ebx, ecx
call fcn.0042cb70
xor eax, eax
push eax
push dword [ebx + 0x20]
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x9c], eax
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42d1b6
mov dword [esp], 0x128
lea eax, [esp]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x42d1af
mov eax, dword [esp + 8]
test eax, eax
je 0x42d0d8
cmp eax, dword [0x4799dc]
je 0x42d190
lea eax, [esp]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x42d0c4
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x42d15c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42d1a8
mov dword [esp + 0x128], 0x128
lea eax, [esp + 0x128]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x42d1a1
mov eax, dword [esp + 0x130]
test eax, eax
je 0x42d13f
cmp eax, dword [0x4799dc]
je 0x42d19a
lea eax, [esp + 0x128]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x42d12c
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42d0ef
mov ecx, dword [0x4799f0]
test ecx, ecx
je 0x42d185
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [0x4799f0]
test ecx, ecx
je 0x42d17b
push 1
mov eax, dword [ecx]
call dword [eax]
mov dword [0x4799f0], 0
add esp, 0x250
pop ebx
pop esi
ret 4
mov esi, 1
jmp 0x42d0e8
mov esi, 1
jmp 0x42d153
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x42d0ef
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x42d0ef
Function at 0x42ee1a
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x477a90]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x42eeb2
push 0x467ed4
push 4
push eax
call fcn.0044c781
push eax
call fcn.0042ec63
add esp, 0x10
push ebx
push edi
call fcn.0044c8b6
mov edi, dword [eax]
call fcn.0044c8b6
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0044be58
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.0044c8b6
cmp dword [eax], ebx
je 0x42eec9
call fcn.0044c8b6
push dword [eax]
call fcn.0042ec8a
pop ecx
jmp 0x42eed0
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42ee66
jmp 0x42ef42
call fcn.0044c8b6
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x42ef3e
cmp dword [ebp - 0x3c], esi
jae 0x42ef3e
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.0044c900
add esp, 0xc
push 0x467d6c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x42ef30
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42ef30
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x42ef30
push ebx
push ebx
push esi
jmp 0x42ef36
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x42ef40
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.0044c668
add ebp, 0xe0
leave
ret
Function at 0x430ccd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x4637bf
call fcn.0044c6aa
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00438178
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x430d18
call fcn.00438178
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x430d29
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x430d36
or eax, 0xffffffff
jmp 0x430e92
mov ecx, esi
call fcn.004307f2
mov dword [ebp - 0x14], eax
call fcn.00434224
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x430db4
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x430db4
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x430db4
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0042ed7f
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x430db4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x430db4
mov ecx, ebx
call fcn.00431138
test eax, eax
je 0x430db4
push 0
mov ecx, ebx
call fcn.00431153
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00435bbd
push dword [ebp - 0x14]
call fcn.0043417c
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00430ad5
xor edi, edi
cmp eax, edi
je 0x430e11
test byte [esi + 0x3c], 0x10
je 0x430dfb
push 4
pop edi
mov ecx, esi
call fcn.0043101f
test ax, 0x100
je 0x430df1
push 5
pop edi
push edi
mov ecx, esi
call fcn.00433d44
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x430e11
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0043133b
or dword [ebp - 4], 0xffffffff
jmp 0x430e3c
cmp dword [ebp - 0x28], edi
je 0x430e4a
push 1
mov ecx, ebx
call fcn.00431153
cmp dword [ebp - 0x2c], edi
je 0x430e5a
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x430e73
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x430e73
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0043082c
cmp dword [esi + 0x58], edi
je 0x430e8f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0044c74f
ret
Function at 0x436cda
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x436d1d
call fcn.00438178
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x436d1d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x436d38
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00436891
test ebx, ebx
mov esi, eax
je 0x436d36
test edi, edi
je 0x436d36
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x43884e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x438894
call fcn.00438178
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x438894
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4388d7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4388c0
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4388c0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4388d4
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43b01a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43b048
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43b066
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043af84
jmp 0x43b066
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43b066
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043af84
test edi, edi
mov eax, edi
jne 0x43b050
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x47b56c]
test ecx, ecx
je 0x43b129
jmp 0x43b019
ret 8

Function at 0x44c668
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x477a90]
jne 0x44c672
repz ret
jmp fcn.004570d6
Function at 0x45206c
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 + 0x477c10]
je 0x452087
inc edi
cmp edi, 0x17
jb 0x452078
cmp edi, 0x17
jae 0x452207
push ebp
push 3
call fcn.00459686
cmp eax, 1
pop ecx
je 0x4521d3
push 3
call fcn.00459686
test eax, eax
pop ecx
jne 0x4520bb
cmp dword [0x477918], 1
je 0x4521d3
cmp ebx, 0xfc
je 0x452206
push 0x46b378
mov ebx, 0x314
push ebx
mov ebp, 0x47ba48
push ebp
call fcn.0044c781
add esp, 0xc
test eax, eax
je 0x4520f1
push esi
push esi
push esi
push esi
push esi
call fcn.0044a893
add esp, 0x14
push 0x104
mov esi, 0x47ba61
push esi
push 0
mov byte [0x47bb65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x452135
push 0x46b360
push 0x2fb
push esi
call fcn.0044c781
add esp, 0xc
test eax, eax
je 0x452135
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044a893
add esp, 0x14
push esi
call fcn.0044c7f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45217a
push esi
call fcn.0044c7f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x47bd5c
push 0x46b35c
sub ecx, eax
push ecx
push eax
call fcn.0044ce8b
add esp, 0x14
test eax, eax
je 0x45217a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044a893
add esp, 0x14
jmp 0x45217c
xor esi, esi
push 0x46b358
push ebx
push ebp
call fcn.0044ca01
add esp, 0xc
test eax, eax
je 0x45219c
push esi
push esi
push esi
push esi
push esi
call fcn.0044a893
add esp, 0x14
push dword [edi*8 + 0x477c14]
push ebx
push ebp
call fcn.0044ca01
add esp, 0xc
test eax, eax
je 0x4521be
push esi
push esi
push esi
push esi
push esi
call fcn.0044a893
add esp, 0x14
push 0x12010
push 0x46b330
push ebp
call fcn.004594c9
add esp, 0xc
jmp 0x452206
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x452206
cmp ebp, 0xffffffff
je 0x452206
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x477c14]
push dword [esi]
call fcn.0044c7f0
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 0x4594c9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044f8a3
xor ebx, ebx
cmp dword [0x47c3f0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x45959f
push 0x46b6a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x45967f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x46b694
push edi
call esi
cmp eax, ebx
je 0x45967f
push eax
call fcn.0044f835
mov dword [esp], 0x46b684
push edi
mov dword [0x47c3f0], eax
call esi
push eax
call fcn.0044f835
mov dword [esp], 0x46b670
push edi
mov dword [0x47c3f4], eax
call esi
push eax
call fcn.0044f835
mov dword [0x47c3f8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0044b8ec
test eax, eax
pop ecx
pop ecx
je 0x45956d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044a893
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x45959f
push 0x46b654
push edi
call esi
push eax
call fcn.0044f835
cmp eax, ebx
pop ecx
mov dword [0x47c400], eax
je 0x45959f
push 0x46b63c
push edi
call esi
push eax
call fcn.0044f835
pop ecx
mov dword [0x47c3fc], eax
mov eax, dword [0x47c3fc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x459624
cmp dword [0x47c400], ecx
je 0x459624
push eax
call fcn.0044f8ac
push dword [0x47c400]
mov esi, eax
call fcn.0044f8ac
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x459624
cmp edi, ebx
je 0x459624
call esi
cmp eax, ebx
je 0x4595f1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4595f1
test byte [ebp - 0x18], 1
jne 0x459624
lea eax, [ebp - 0x10]
push eax
call fcn.0044b923
test eax, eax
pop ecx
je 0x45960c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044a893
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x45961b
or dword [ebp + 0x10], 0x200000
jmp 0x45965f
or dword [ebp + 0x10], 0x40000
jmp 0x45965f
mov eax, dword [0x47c3f4]
cmp eax, dword [ebp - 8]
je 0x45965f
push eax
call fcn.0044f8ac
cmp eax, ebx
pop ecx
je 0x45965f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45965f
mov eax, dword [0x47c3f8]
cmp eax, dword [ebp - 8]
je 0x45965f
push eax
call fcn.0044f8ac
cmp eax, ebx
pop ecx
je 0x45965f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47c3f0]
call fcn.0044f8ac
cmp eax, ebx
pop ecx
je 0x45967f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x459681
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x462f88
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x477a90]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00462f1d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0044c900
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x462fd7
cmp dword [ebp - 0x1c], 5
jb 0x462fef
jmp 0x462feb
cmp dword [ebp - 0x10], 1
jne 0x462fef
cmp dword [ebp - 0x1c], 4
ja 0x462feb
jne 0x462fef
cmp dword [ebp - 0x18], 0
jbe 0x462fef
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46e3a4
call fcn.00462df1
test eax, eax
jge 0x463010
mov byte [0x479a24], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044c668
add ebp, 0x78
leave
ret
Function at 0x407077
Capabilities:
Encode data using xor

Disassembly:
call 0x406f21
mov ecx, 0x1c2
call 0x407077
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x40707a
push ebx
push ebx
push ebx
push edi
fmulp st(7)
fidivr word [ebp + ebp - 2]
push ebx
pushfd
popfd
aas
mov byte [ecx + 0x48], 0x82
adc dword [ebp - 0x18177204], 0xffffffe6
mov eax, dword [0x728c0158]
js 0x4070ab
mov eax, dword [0x7e7520e3]
mov bh, 0xd7
loopne 0x407109
fdiv dword [edi + 0x75]
ja 0x407122
ja 0x407124
pop edx
in eax, 0x20
mov dh, 0xd6
rcr byte [eax - 0x5c], 0x84
fld xword [ebx + 9]
invalid
xor al, 0xd7
invalid
clc
scasd eax, dword es:[edi]
push ebx
pop esp
invalid
mov byte [0xf7bd7e1f], al
dec ebx
scasd eax, dword es:[edi]
pop eax
mov fs, word [eax + 0xb01a467]
jle 0x4070e3
test dword [ebx - 0x51], 0x67a08e58
movsb byte es:[edi], byte [esi]
add dword [ebx], ecx
push es
add ah, bl
push edx
pop es
dec ebp
daa
inc edi
aaa
sub eax, 0x65064beb
wait
add al, 0x41
test byte [edx - 0x31], ch
cmp ebx, ecx
jecxz 0x407160
adc bh, byte [edx - 0x3e]
fmul dword [edi + 0x26]
clc
imul ebx, dword [esi - 0x5e], 9
mov esp, 0x6355ec4a
pop esi
push 0xffffffffffffff8b
cmp al, 0xd7
mov eax, dword [0x8239f4aa]
ror dword [ebp + 0x38498c3c], cl
xor cl, byte [esi + 0x3c7c57e0]
cmp dword [edx - 0x73c3722d], eax
dec ecx
cmp byte [edx], dh
mov fs, eax
push edi
jl 0x4071aa
aas
lea esi, [esi]
jmp [ebp + eax*2 + 0x12c8a6ff]
sub bl, byte [esi + edi*8 + 0x7d]
xchg esp, eax
invalid
Function at 0x407d20
Capabilities:
Encode data using xor

Disassembly:
lea ecx, [ecx]
mov byte [0x890d407b], al
stc
xchg ebp, eax
add ah, al
jp 0x407ccb
add byte [ecx + edi*2 + 0x40], al
add byte [esi - 0x5dfdbf87], ah
add ecx, 0
pop ds
jns 0x407cdb
add ch, dh
jns 0x407cdf
add byte [ebx + 0x7a], dh
inc eax
add ah, bh
or byte [esi], bh
or byte [eax], cl
cmp eax, 0x33080808
or byte [eax - 0x22f78512], cl
enter 0x808, 8
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
imul ecx, dword [eax], 0x8140876
xlatb
or byte [eax], cl
or byte [ebx + 0x81b0808], cl
sbb ecx, dword [eax]
or byte [eax], cl
or byte [eax], cl
or byte [ebx + 8], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
inc ebp
or byte [eax], cl
or byte [ebp + 8], al
or byte [eax], cl
or ah, dl
or byte [eax], cl
or byte [ecx], al
add bl, byte [ecx + 0x8025208]
dec edi
add ecx, dword [eax]
or byte [eax], cl
or byte [eax], cl
or ch, cl
or byte [eax], cl
fld qword [eax + ecx]
or byte [eax], cl
aam 8
or byte [eax], cl
add dword [edx], eax
cdq
or byte [edx + 2], dl
or byte [edi + 3], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
int 8
or ch, bl
add al, 8
jbe 0x407d04
imul ecx, dword [eax], 0x8080808
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [eax], cl
or byte [0x8060808], al
or byte [edx], dl
pop es
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0x58
push esi
lea eax, [ebp - 0x2c]
push edi
mov edi, dword [ebp + 0x38]
lea esp, [edx - 0x4e]
push eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp + 0xc]
push ecx
mov eax, dword [esi]
or byte [edx + 0x57], dl
push eax
push ecx
call 0x9e407ec0
inc ebp
dec ebp
cld
mov edx, dword [ebp - 0x65]
or eax, esp
sbb byte [ecx - 0x367207cd], cl
mov esi, edx
test byte [esi], al
invalid
Function at 0x401670
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x401870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x416de4], 0xffffffff
mov dword [0x416de8], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x416d80]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x416d7c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x416dec], ecx
call fcn.00401860
mov eax, dword [0x415208]
test eax, eax
jne 0x401701
push 0x401850
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00401830
push 0x41500c
push 0x415008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x416d78]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x416d74]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x415004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x40180f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x401775
cmp al, 0x22
jne 0x401767
cmp byte [esi], 0x22
jne 0x40177e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40178e
cmp al, 0x20
ja 0x40178e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40177e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4017af
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4017b4
mov eax, 0xa
push eax
push esi
push 0
push 0
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]
jmp 0x4017f4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40177e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40180f