joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4b9430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [0x4c7004]
cmp dword [0x4c5c9c], ebx
je 0x41b027
xor esi, esi
jmp 0x41b02e
call fcn.0041af70
mov esi, eax
push 0x30
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00463ac0
mov ecx, dword [0x4c7124]
add esp, 0xc
push ebx
mov dword [ebp - 0x58], 0x30
mov dword [ebp - 0x54], 8
mov dword [ebp - 0x50], 0x41b500
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 0x6a
mov dword [ebp - 0x30], str.AdbybyRuleWindow
call dword [sym.imp.GDI32.dll_GetStockObject]
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push ebx
push edi
push ebx
push esi
push 0x258
push 0x320
push accept
push accept
push 0xcf0000
push 0x4b1a68
push str.AdbybyRuleWindow
push 0x40000
call dword [sym.imp.USER32.dll_CreateWindowExA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
call ebx
push 1
mov dword [ebp - 0x28], eax
call ebx
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0xc]
push 0x40
cdq
sub eax, edx
mov ecx, eax
mov eax, ebx
mov ebx, dword [ebp - 8]
sub eax, ebx
cdq
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetWindowPos]
sub eax, edx
mov edx, dword [ebp - 0xc]
push edx
sar eax, 1
push eax
sar ecx, 1
push ecx
push 0
push esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
call ebx
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
call fcn.0041b200
cmp dword [0x4c5cb8], 0x100
mov eax, str.RichEdit
je 0x41b136
mov eax, str.RichEdit20A
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push 0
push edi
push 0
push esi
push ecx
mov ecx, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x24]
push ecx
push edx
push 0x50300144
push 0x4ab595
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0xfffffffffffffffc
push eax
mov dword [0x4c5a70], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x41b2b0
mov dword [0x4c5a6c], eax
mov eax, dword [0x4c5a70]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [0x4c5a70]
push 0x80000
push 0
push 0x435
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.0041ace0
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x4c5c8c]
lea edx, [ebp - 0x24]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push 4
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x24]
sub edx, ecx
push edx
push eax
mov eax, dword [0x4c5a70]
push ecx
push 0
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
Function at 0x41cfc0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b9430]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x4c5cd8], eax
cmp eax, 0xffffffff
jne 0x41cff6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov eax, 2
push str.127.0.0.1
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x3e73
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [0x4c5cd8]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push edx
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_bind]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
Function at 0x41d070
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48fdb8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4b9430]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
push edi
mov eax, dword [0x4b9430]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
xor eax, eax
mov word [esp + 0x50], ax
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov word [esp + 0x5e], ax
mov dword [esp + 0x28], 0x10
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x54]
push edx
push 0
push 0x20
lea eax, [esp + 0x70]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x41d0d0
cmp eax, 0x20
jne 0x41d0d0
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x68]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 8]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x90], 0
mov ecx, dword [ebx + 0x28]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x25], 0
lea esi, [ebx + 0x24]
jne 0x41d164
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jae 0x41d15a
mov eax, dword [eax + 8]
jmp 0x41d15e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0x25], 0
je 0x41d150
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], ecx
cmp ecx, eax
je 0x41d17a
cmp edi, dword [ecx + 0xc]
jb 0x41d17a
lea eax, [esp + 0x2c]
jmp 0x41d182
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov eax, dword [eax]
cmp dword [ebx + 0x28], eax
je 0x41d1ae
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ecx
jmp 0x41d1f0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x44], eax
lea edi, [esp + 0x30]
mov eax, esi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
call fcn.0041db20
push eax
push esi
lea esi, [esp + 0x50]
call fcn.0041d7d0
mov dword [esp + 0x90], 0xffffffff
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x41d0d0
Function at 0x41dbb0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x4b9430]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x102
push eax
lea ecx, [esp + 0x15a]
push ecx
mov word [esp + 0x15c], ax
call fcn.00463ac0
add esp, 0xc
push esi
lea edx, [esp + 0x154]
push 0x104
push edx
call fcn.00460ae1
add esp, 0xc
push 0x4b1afc
lea eax, [esp + 0x154]
push 0x104
push eax
call fcn.004618fb
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41dcec
cmp byte [esp + 0x3c], 0x2e
je 0x41dcd1
push esi
lea eax, [esp + 0x154]
push 0x104
push eax
call fcn.00460ae1
add esp, 0xc
push 0x4abad0
lea ecx, [esp + 0x154]
push 0x104
push ecx
call fcn.004618fb
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x154]
push 0x104
push eax
call fcn.004618fb
add esp, 0xc
test byte [esp + 0x10], 0x10
push ebx
je 0x41dcb0
lea ecx, [esp + 0x154]
push ecx
call fcn.0041dbb0
add esp, 8
jmp 0x41dcd1
lea edx, [esp + 0x40]
push edx
call fcn.004683a2
add esp, 8
test eax, eax
jne 0x41dcd1
lea eax, [esp + 0x150]
push eax
call fcn.00420170
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41dc41
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
Function at 0x41dd10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa5c
mov eax, dword [0x4b9430]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
xor edx, edx
xor esi, esi
mov dword [ebp - 0xa58], eax
mov dword [ebp - 0xa54], eax
mov dword [ebp - 0xa50], eax
mov dword [ebp - 0xa4c], eax
mov dword [ebp - 0xa48], eax
push edi
mov dword [ebp - 0xa5c], edx
mov eax, ebx
cmp byte [ebx], dl
je 0x41de7a
lea esp, [esp]
mov cl, byte [eax]
cmp cl, 0x25
jne 0x41dd74
mov dword [ebp + esi*4 - 0xa5c], edx
inc esi
cmp esi, 5
jg 0x41dd8a
cmp cl, 0xd
je 0x41dd87
cmp cl, 0xa
je 0x41dd87
inc eax
inc edx
cmp byte [eax], 0
jne 0x41dd60
jmp 0x41dd8a
mov byte [eax], 0
cmp esi, 2
jne 0x41de7a
mov edi, dword [ebp - 0xa5c]
mov esi, dword [ebp - 0xa58]
sub esi, edi
lea eax, [esi - 1]
push eax
lea ecx, [ebx + edi + 1]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.004608a0
add esp, 0xc
push 0x208
lea eax, [ebp - 0xa44]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov byte [ebp + esi - 0x69], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x41de68
cmp eax, 0x208
jg 0x41de68
push edi
lea edx, [ebp - 0x838]
push ebx
push edx
call fcn.004608a0
lea eax, [ebp - 0xa44]
add esp, 0xc
mov byte [ebp + edi - 0x838], 0
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41de05
lea edi, [ebp - 0x838]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41de15
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0xa58]
and ecx, 3
lea eax, [ebx + eax + 1]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x41de37
lea edi, [ebp - 0x838]
sub eax, ecx
mov esi, ecx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x41de50
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x41de8e
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x838]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x41de84
cmp byte [ebp - 0x838], 0x2d
jne 0x41dec9
cmp byte [ebp - 0x837], 0x79
jne 0x41dec9
lea ecx, [ebp - 0x836]
push 0x5c
push ecx
call fcn.0045e830
add esp, 8
test eax, eax
je 0x41dec9
mov byte [eax], 0
inc eax
push eax
lea edx, [ebp - 0x836]
push edx
call fcn.0041dbb0
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
Function at 0x41e140
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x258
mov eax, dword [0x4b9430]
xor eax, esp
mov dword [esp + 0x254], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor ecx, ecx
push 0x102
push ecx
lea edx, [esp + 0x15a]
push edx
mov dword [esp + 0x18], eax
mov word [esp + 0x15c], cx
call fcn.00463ac0
push esi
lea eax, [esp + 0x160]
push 0x104
push eax
call fcn.00460ae1
push 0x4b1afc
lea ecx, [esp + 0x16c]
push 0x104
push ecx
call fcn.004618fb
add esp, 0x24
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41e27c
mov edi, edi
cmp byte [esp + 0x3c], 0x2e
je 0x41e261
push esi
lea ecx, [esp + 0x154]
push 0x104
push ecx
call fcn.00460ae1
push 0x4abad0
lea edx, [esp + 0x160]
push 0x104
push edx
call fcn.004618fb
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x16c]
push 0x104
push ecx
call fcn.004618fb
add esp, 0x24
test byte [esp + 0x10], 0x10
je 0x41e23d
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x154]
push eax
call fcn.0041e140
add esp, 8
jmp 0x41e261
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.004683a2
add esp, 8
test eax, eax
jne 0x41e261
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41e1d0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
xor ecx, esp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
Function at 0x41e290
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x4b9430]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x102
push eax
lea ecx, [esp + 0x15a]
push ecx
mov word [esp + 0x15c], ax
call fcn.00463ac0
push esi
lea edx, [esp + 0x160]
push 0x104
push edx
call fcn.00460ae1
push 0x4abad0
lea eax, [esp + 0x16c]
push 0x104
push eax
call fcn.004618fb
push ebx
lea ecx, [esp + 0x178]
push 0x104
push ecx
call fcn.004618fb
add esp, 0x30
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x41e3be
mov edi, edi
cmp byte [esp + 0x3c], 0x2e
je 0x41e3a3
push esi
lea ecx, [esp + 0x154]
push 0x104
push ecx
call fcn.00460ae1
push 0x4abad0
lea edx, [esp + 0x160]
push 0x104
push edx
call fcn.004618fb
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x16c]
push 0x104
push ecx
call fcn.004618fb
add esp, 0x24
test byte [esp + 0x10], 0x10
je 0x41e395
lea edx, [esp + 0x150]
push ebx
push edx
call fcn.0041e290
add esp, 8
jmp 0x41e3a3
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41e330
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret

Function at 0x41e400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41e418
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41e44a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x41e446
cmp esi, eax
jae 0x41e44a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41e438
cmp esi, eax
jb 0x41e450
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x41e4e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49032b
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4b9430]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4ba448]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ba448
mov dword [ebp - 0x50], esi
call edx
add eax, 0x10
mov dword [esi + 0x6c], eax
xor edi, edi
push 0x7f00
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f89
push edi
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x18], eax
or eax, 0xffffffff
push 0x11
mov dword [esi + 0x1c], edi
mov dword [esi], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [ebp - 0x4c]
push ecx
push 0x3c
push eax
mov dword [esi + 0x38], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea edx, [ebp - 0x4c]
push edx
mov dword [ebp - 0x3c], 0x2bc
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [esi + 0x3c], eax
push 0x4ab595
lea eax, [esi + 0x6c]
mov dword [esi + 4], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], 1
mov dword [esi + 0x68], edi
call fcn.0041fac0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
Function at 0x41e9d0
Capabilities:
Change the wallpaper
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b9430]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x4c5b28]
mov ecx, dword [esi]
push edi
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
sub edi, dword [ebp - 0x14]
sub ebx, dword [ebp - 0x10]
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, dword [ebp - 8]
mov eax, ecx
sub eax, ebx
mov dword [esi + 0x50], eax
mov edx, ecx
sub edx, eax
mov eax, 0x66666667
imul edx
sar edx, 3
push 0xd
mov eax, edx
shr eax, 0x1f
push 0
add eax, edx
push 0
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 0xc]
push ecx
sub eax, edi
push eax
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x54], ecx
mov ecx, dword [esi]
push 0
push ecx
mov dword [esi + 0x5c], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi]
mov edi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0xa
push 0x4d4
push edx
call edi
mov eax, dword [esi]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi]
push 0
push 0x3e8
push 0x4d2
push ecx
call edi
mov edx, dword [esi]
push 0
push 0x1388
push 0x4d3
push edx
call edi
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
Function at 0x41f6d0
Capabilities:
Create process on windows

Disassembly:
cmp eax, dword [esi + 0xc]
jge 0x41f74a
test eax, eax
je 0x41f73b
cmp eax, 4
je 0x41f722
mov eax, dword [esi + 0x6c]
push 0x4ab595
push eax
call fcn.00461c72
add esp, 8
test eax, eax
je 0x41f70a
mov eax, dword [esi + 0x6c]
push 5
push 0
push 0
push eax
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [esi + 0x64], 0
je 0x41f74a
mov ecx, dword [esi]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
ret
mov edx, dword [esi]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esi + 4], 1
xor eax, eax
ret
mov eax, dword [esi]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
ret

Function at 0x420170
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4b9430]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x4aba9c
push eax
mov dword [ebp - 0x1c], eax
call fcn.0045e59d
mov edi, eax
add esp, 8
test edi, edi
je 0x42029b
push 2
push 0
push edi
call fcn.0045eae0
add esp, 0xc
push edi
call fcn.0045e9f1
add esp, 4
push 0
push 0
push edi
mov esi, eax
call fcn.0045eae0
add esp, 0xc
test esi, esi
jne 0x4201e4
push edi
call fcn.0045ec1a
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
lea eax, [esi + 1]
push eax
call fcn.0045db21
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x42029b
push edi
push 1
push esi
push ebx
mov byte [ebx + esi], 0
call fcn.0045e809
add esp, 0x10
cmp eax, 1
jne 0x42029b
push edi
call fcn.0045ec1a
xor eax, eax
add esp, 4
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
push edx
mov eax, esi
mov edi, 5
mov dword [ebp - 0x10], 0x63660200
mov byte [ebp - 0xc], 0
mov byte [ebp - 0x18], 0
call fcn.0041fe00
add esp, 8
mov ecx, esi
mov dword [ebp - 0x10], eax
call fcn.0041fe80
mov edi, eax
add edi, dword [ebp - 0x10]
mov ecx, esi
call fcn.0041ff80
add edi, eax
mov dword [ebp - 0x10], edi
mov ecx, esi
mov edi, ebx
call fcn.00420080
add eax, dword [ebp - 0x10]
je 0x42029b
mov eax, dword [ebp - 0x1c]
push 0x4b1b34
push eax
call fcn.0045e59d
mov edi, eax
push edi
push 1
push esi
push ebx
call fcn.00461de0
push edi
call fcn.0045ec1a
add esp, 0x1c
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
Function at 0x421f20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x421f56
mov eax, dword [0x4c7128]
inc dword [0x4c5ca0]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [0x4c7128]
push 0x43
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
pop ebp
ret
cmp dword [0x4c5c9c], 0
je 0x421f7f
cmp dword [0x4c5ca0], 0
jle 0x421f6e
dec dword [0x4c5ca0]
mov edx, dword [0x4c7128]
push 6
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret
cmp dword [0x4c5ca0], 0
jle 0x421f8e
dec dword [0x4c5ca0]
mov eax, dword [0x4c7128]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret
Function at 0x4228e0
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4b9430]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.00463ac0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0
call esi
lea edx, [ebp - 0x10c]
push 0x5c
push edx
call fcn.0045e830
mov byte [eax], 0
lea eax, [ebp - 0x10c]
add esp, 8
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x422942
mov ecx, dword [str._adhook.ini]
mov edx, dword [0x4ab8f8]
mov dword [eax], ecx
mov ecx, dword [0x4ab8fc]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
test edi, edi
je 0x422976
lea edx, [ebp - 0x10c]
push edx
push 0x4b1ea8
jmp 0x422982
lea eax, [ebp - 0x10c]
push eax
push 0x4ab9e0
push str.AutoRun
push 0x4ab9f4
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x214]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x422a39
test edi, edi
je 0x422a1a
push 0x104
lea edx, [ebp - 0x210]
push edx
push eax
call esi
test eax, eax
je 0x422a2c
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4229d1
mov ecx, dword [ebp - 0x214]
sub eax, edx
push eax
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x4b1f20
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x422a2c
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x214]
push 0x4b1f20
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0045d3b4
mov esp, ebp
pop ebp
ret