joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004e5e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x101499c8]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x1004e6d1
mov eax, dword [0x101499c0]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x1004e625
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x1004e608
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1004e6d1
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.1004e390
mov ecx, dword [0x101499c8]
add esp, 4
cmp esi, ecx
jae 0x1004e685
imul edi, esi, 0x2c
mov eax, dword [0x101499c0]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x1004e67a
mov edx, ebx
mov ecx, esi
call fcn.1004e4e0
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004e682
mov ecx, dword [0x101499c8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1004e651
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1004e6d1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1004e6c2
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1004e6b6
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1004e695
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x101482d4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10050190
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x1007b040]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
push 0x40
lea eax, [esp + 0x24]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0x20
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x2c]
shr eax, 3
mov edx, 0x3f
and eax, 0x3f
mov dword [esp + 0x18], 0xefcdab89
add ecx, eax
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
sub edx, eax
mov dword [esp + 0x28], 0
add esp, 0xc
mov dword [esp + 0x20], esi
mov byte [ecx], 0x80
inc ecx
cmp edx, 8
jae 0x10050232
push edx
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.1004fb10
push 0x38
lea eax, [esp + 0x30]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
jmp 0x10050241
lea eax, [edx - 8]
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x58], eax
lea ecx, [esp + 8]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
call fcn.1004fb10
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0xe]
pop esi
xor ecx, esp
call fcn.10063df6
mov esp, ebp
pop ebp
ret

Function at 0x100533e0
Capabilities:
Hash data using fnv

Disassembly:
mov eax, dword [0x1014964c]
add ecx, 4
push esi
mov esi, dword [eax + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov edx, dword [esi]
mov ecx, esi
push eax
mov edx, dword [edx + 0xc]
call edx
pop esi
mov cl, byte [eax]
test cl, cl
je 0x10053439
movsx ecx, cl
xor ecx, 0x811c9dc5
imul edx, ecx, 0x1000193
lea ecx, [eax + 1]
call fcn.10013db0
cmp eax, 0x7c4a5426
ja 0x1005343c
je 0x1005347a
cmp eax, 0x19acc50e
je 0x1005347a
cmp eax, 0x43d6266e
je 0x1005347a
cmp eax, 0x4d7aa8c1
je 0x1005347a
xor al, al
ret
cmp eax, 0xc941ff64
ja 0x10053463
je 0x1005347a
cmp eax, 0x9d08c4c8
ja 0x1005345c
je 0x1005347a
cmp eax, 0x7f11af2d
je 0x1005347a
cmp eax, 0x84ea2fe5
jmp 0x10053437
cmp eax, 0xa7eab73f
jmp 0x10053437
cmp eax, 0xe80bc214
ja 0x1005347d
je 0x1005347a
cmp eax, 0xd614ea2e
je 0x1005347a
cmp eax, 0xe1525a25
jne 0x10053439
mov al, 1
ret
cmp eax, 0xf8573d98
sete al
ret

Function at 0x10053490
Capabilities:
Hash data using fnv

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
mov eax, dword [eax + 8]
call eax
cmp dword [eax + 0x14], 0xb5
je 0x10053515
mov eax, dword [0x1014964c]
lea ecx, [edi + 4]
push esi
mov esi, dword [eax + 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
mov edx, dword [esi]
mov ecx, esi
push eax
mov edx, dword [edx + 0xc]
call edx
pop esi
mov cl, byte [eax]
test cl, cl
je 0x10053500
movsx ecx, cl
xor ecx, 0x811c9dc5
imul edx, ecx, 0x1000193
lea ecx, [eax + 1]
call fcn.10013db0
cmp eax, 0x5978b32e
ja 0x10053504
je 0x10053515
cmp eax, 0x1b20e275
je 0x10053515
cmp eax, 0x3cb8abb3
je 0x10053515
cmp eax, 0x4c849f3c
je 0x10053515
xor al, al
pop edi
ret
cmp eax, 0x97113ea7
je 0x10053515
cmp eax, 0xa8d619ea
pop edi
sete al
ret
mov al, 1
pop edi
ret
Function at 0x10061c50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [ebp + 0xc], 1
jne 0x10061c83
push 0
push 0
push dword [ebp + 8]
push 0x10061be0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10061c83
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10013ca7
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 4
xor eax, eax
mov ecx, 0x10054220
push edi
cmp dword [ecx], edx
je 0x10013cc6
add ecx, 8
inc eax
cmp ecx, 0x10054298
jb 0x10013cb6
shl eax, 3
cmp dword [eax + 0x10054220], edx
jne 0x10013cfa
mov edx, dword [eax + 0x10054224]
push 0
lea eax, [esp + 8]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [0x10053ef8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
add esp, 4
ret
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..reloc
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x4e254e5e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x42f314
nop
mov ecx, 0x62a91588
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0xb3a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb3a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb3a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb3a06a
add dl, dl
jne 0xb3a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb3a0dc
xor eax, eax
add dl, dl
jne 0xb3a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb3a17d
add dl, dl
jne 0xb3a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb3a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb3a075
mov eax, 1
add dl, dl
jne 0xb3a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb3a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb3a0e1
sub eax, ebx
mov ebx, 1
jne 0xb3a128
mov ecx, 1
add dl, dl
jne 0xb3a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb3a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb3a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb3a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb3a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb3a136
cmp eax, 0x7d00
jae 0xb3a16d
cmp eax, 0x500
jb 0xb3a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3a075
cmp eax, 0x7f
ja 0xb3a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb3a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb3a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb3a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4011a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x120
mov eax, dword [0x4432d4]
push esi
push edi
mov dword [esp + 0x124], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 0x18], 0
mov ecx, 0x41
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4011e3
mov ecx, dword [str.PrinterSetup.log]
mov edx, dword [0x434864]
mov eax, dword [0x434868]
mov dword [edi], ecx
mov ecx, dword [0x43486c]
mov dword [edi + 4], edx
mov dx, word [0x434870]
mov dword [edi + 8], eax
lea eax, [esp + 0x18]
mov dword [edi + 0xc], ecx
push 0x43485c
push eax
mov word [edi + 0x10], dx
call fcn.0040db67
push str._______________Start_n
push eax
mov dword [esi], eax
mov byte [esi + 4], 0
call fcn.0040daad
add esp, 0x10
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx edx, word [esp + 0x14]
movzx eax, word [esp + 0x12]
movzx ecx, word [esp + 0x10]
push edx
movzx edx, word [esp + 0x12]
push eax
movzx eax, word [esp + 0x12]
push ecx
movzx ecx, word [esp + 0x14]
push edx
mov edx, dword [esi]
push eax
push ecx
push str.Time_:__d._d._d____d:_d:_d_n
push edx
call fcn.0040daad
mov ecx, dword [esp + 0x144]
add esp, 0x20
mov eax, esi
call fcn.0040da9f
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x432d6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov eax, dword [0x4432d4]
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
mov dword [esp + 0x13c], eax
mov dword [esp + 0x2c], esi
call fcn.004011a0
mov dword [esp + 0x14c], 0
mov dword [esi + 4], 0
call fcn.00402fa0
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov ecx, dword [str.Hancom_PDF]
cmp eax, 0x412
lea eax, [esi + 0x110]
mov dword [eax], ecx
mov edx, dword [0x434904]
mov dword [eax + 4], edx
mov cx, word [0x434908]
mov word [eax + 8], cx
mov dl, byte [0x43490a]
mov byte [eax + 0xa], dl
mov ecx, dword [str.Hancom_PDF]
lea eax, [esi + 0x128]
mov dword [eax], ecx
mov edx, dword [0x434904]
mov dword [eax + 4], edx
mov cx, word [0x434908]
mov word [eax + 8], cx
mov dl, byte [0x43490a]
mov byte [eax + 0xa], dl
xor eax, eax
mov byte [esp + 0x30], 0
mov ecx, 0x41
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x30]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401520
mov ecx, dword [str.Kernel32.dll]
mov edx, dword [0x4348f4]
mov eax, dword [0x4348f8]
mov dword [edi], ecx
mov cx, word [0x4348fc]
mov dword [edi + 4], edx
lea edx, [esp + 0x30]
mov dword [edi + 8], eax
push edx
mov word [edi + 0xc], cx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x401617
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push str.GetNativeSystemInfo
mov dword [esp + 0x28], eax
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4015d6
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [str.Windows_NT_x86]
lea eax, [esi + 0x140]
mov ecx, eax
mov dword [ecx], edx
mov edx, dword [0x4348d0]
mov dword [ecx + 4], edx
mov edx, dword [0x4348d4]
mov dword [ecx + 8], edx
mov dx, word [0x4348d8]
mov word [ecx + 0xc], dx
mov dl, byte [0x4348da]
mov byte [ecx + 0xe], dl
jmp 0x40164d
lea ecx, [esp + 8]
push ecx
call eax
mov eax, dword [esp + 8]
cmp ax, 6
je 0x4015f3
cmp ax, 0xa
je 0x4015f3
cmp ax, 9
jne 0x401617
mov ecx, dword [str.Windows_x64]
lea eax, [esi + 0x140]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [0x4348c4]
mov dword [edx + 4], ecx
mov ecx, dword [0x4348c8]
mov dword [edx + 8], ecx
jmp 0x40164d
mov ecx, dword [str.Windows_NT_x86]
lea eax, [esi + 0x140]
mov edx, eax
mov dword [edx], ecx
mov ecx, dword [0x4348d0]
mov dword [edx + 4], ecx
mov ecx, dword [0x4348d4]
mov dword [edx + 8], ecx
mov cx, word [0x4348d8]
mov word [edx + 0xc], cx
mov cl, byte [0x4348da]
mov byte [edx + 0xe], cl
push eax
lea ecx, [esi + 8]
call fcn.004012b0
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13c]
mov eax, esi
call fcn.0040da9f
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4016a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [0x4432d4]
push edi
mov dword [esp + 0xac], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0xc], 5
jne 0x4016fe
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4016fe
mov eax, 1
mov ecx, dword [esp + 0xac]
call fcn.0040da9f
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xac]
xor eax, eax
call fcn.0040da9f
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x401910
Capabilities:
Query service status
Start service
Stop service

Disassembly:
sub esp, 0x24
push edi
mov dword [esp + 8], ecx
add ecx, 8
push str.__________________________________Start_AddMonitor______
mov dword [esp + 8], ecx
call fcn.004012b0
push SysReAllocStringLen
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x401a84
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push 0xf01ff
push str.spooler
push edi
call ebx
test eax, eax
jne 0x401967
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
pop edi
add esp, 0x24
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push eax
call ebp
push 0x20000000
push str.spooler
push edi
call ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x4349e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push eax
call fcn.004012d0
push esi
call ebp
push 0x80
push str.spooler
push edi
call ebx
mov esi, eax
lea ecx, [esp + 0x18]
push ecx
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
cmp dword [esp + 0x1c], 1
jne 0x4019b6
push esi
call ebp
mov ecx, dword [esp + 0x14]
call fcn.004016a0
cmp eax, 1
jne 0x4019e7
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
push str.spooler
push edi
call ebx
push 0x7f02
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
cmp eax, 1
jne 0x401a59
push str.____
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push eax
call fcn.004012d0
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edx, [esp + 0x18]
push edx
push esi
call ebx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x401a59
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x18]
push eax
push esi
call ebx
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x401a42
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push esi
call ebp
push edi
call ebp
mov ecx, dword [esp + 0x10]
push str.__________________________________End___AddMonitor______
call fcn.004012b0
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x24
ret
Function at 0x402ed0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 1]
jmp 0x402ee0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402ee0
mov ecx, dword [ecx]
sub eax, edi
push eax
mov eax, dword [esp + 0x10]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8

Function at 0x402f10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
lea eax, [esp]
push eax
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
add esp, 8
ret 8

Function at 0x402fa0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402fd9
mov ecx, dword [esp]
push str.PDF_driver
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret

Function at 0x402fe0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40303b
mov edx, dword [esp + 8]
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403010
mov ecx, dword [esp + 4]
sub eax, esi
push eax
push edx
push 1
push 0
push str.PDF_driver
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
Function at 0x403500
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x111c
call fcn.0040e380
mov eax, dword [0x4432d4]
push ebx
push esi
push edi
mov dword [esp + 0x1124], eax
mov eax, dword [ebp + 8]
push eax
push 0
mov esi, 1
push 0x410
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40370f
lea ecx, [esp + 0x14]
push ecx
push 0x1000
lea edx, [esp + 0x20]
push edx
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4036f1
mov eax, dword [ebp + 0xc]
and eax, esi
cmp al, 1
jne 0x403616
mov edx, dword [esp + 0x18]
xor eax, eax
mov byte [esp + 0x1018], 0
mov ecx, 0x41
lea edi, [esp + 0x1019]
push 0x105
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x101c]
push ecx
push edx
push ebx
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x4036f1
lea eax, [esp + 0x1018]
push eax
call fcn.0040e7f7
mov eax, dword [0x4441c8]
add esp, 4
xor esi, esi
test eax, eax
jbe 0x403616
jmp 0x4035d0
lea eax, [esp + 0x1018]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4035e0
mov ecx, dword [0x4441c0]
mov ecx, dword [ecx + esi*4]
sub eax, edx
push eax
push ecx
lea edx, [esp + 0x1020]
push edx
call fcn.0040dcab
add esp, 0xc
test eax, eax
je 0x4036b4
mov eax, dword [0x4441c8]
inc esi
cmp esi, eax
jb 0x4035d0
mov eax, dword [ebp + 0xc]
and eax, 2
cmp al, 2
jne 0x4036f1
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, 0xfffffffc
jbe 0x4036f1
jmp 0x403640
mov edx, dword [esp + esi*4 + 0x18]
xor eax, eax
mov byte [esp + 0x1018], 0
mov ecx, 0x41
lea edi, [esp + 0x1019]
push 0x105
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x101c]
push ecx
push edx
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x4036f1
lea eax, [esp + 0x1018]
push 2
push eax
call fcn.00403460
add esp, 8
test al, al
jne 0x4036cb
mov ecx, dword [esp + 0x14]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x403640
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1124]
call fcn.0040da9f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push eax
lea ecx, [esp + 0x101c]
push ecx
push str._nMatching_Process_:__s__PID_:__u_
push edx
jmp 0x4036e1
mov edx, dword [esp + esi*4 + 0x18]
mov ecx, dword [ebp + 0x10]
push edx
lea eax, [esp + 0x101c]
push eax
push str._nMatchingModule_:__s__0x_08X_
push ecx
call fcn.0040daad
add esp, 0x10
mov dword [esp + 0x10], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1124]
call fcn.0040da9f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1124]
mov eax, esi
call fcn.0040da9f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403730
Capabilities:
Enumerate process modules
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1124
call fcn.0040e380
mov eax, dword [0x4432d4]
push ebx
push esi
mov dword [esp + 0x1128], eax
mov eax, dword [ebp + 8]
push edi
push eax
call fcn.00403230
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
push 0x1000
lea edx, [esp + 0x28]
xor esi, esi
push edx
mov dword [esp + 0x28], esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4038b0
mov ebx, dword [esp + 0x1c]
xor eax, eax
mov byte [esp + 0x1020], 0
mov ecx, 0x41
lea edi, [esp + 0x1021]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1020]
push eax
push 0x104
shr ebx, 2
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x1020]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4037b7
mov ecx, dword [str.ProcessList.txt]
mov edx, dword [0x435134]
mov eax, dword [0x435138]
mov dword [edi], ecx
mov ecx, dword [0x43513c]
mov dword [edi + 4], edx
mov dl, byte [0x435140]
mov dword [edi + 8], eax
lea eax, [esp + 0x1020]
mov dword [edi + 0xc], ecx
push 0x43485c
push eax
mov byte [edi + 0x10], dl
call fcn.0040db67
mov edi, eax
add esp, 8
cmp edi, esi
jne 0x40381d
mov eax, 2
mov ecx, dword [esp + 0x112c]
call fcn.0040da9f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [esp + 0xe], ecx
mov dword [esp + 0x12], ecx
lea edx, [esp + 0xc]
mov dword [esp + 0x16], ecx
push edx
mov word [esp + 0x10], si
mov word [esp + 0x1e], cx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [esp + 0x18]
movzx ecx, word [esp + 0x16]
movzx edx, word [esp + 0x14]
push eax
movzx eax, word [esp + 0x16]
push ecx
movzx ecx, word [esp + 0x16]
push edx
movzx edx, word [esp + 0x18]
push eax
push ecx
push edx
push str._n__________________________________________d._d._d__d:_d:_d_
push edi
call fcn.0040daad
add esp, 0x20
test ebx, ebx
jbe 0x40388f
mov eax, dword [esp + esi*4 + 0x20]
push edi
push 2
push eax
call fcn.00403500
add esp, 0xc
test eax, eax
je 0x4038b0
inc esi
cmp esi, ebx
jb 0x403876
push edi
call fcn.0040dbc6
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x112c]
call fcn.0040da9f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x112c]
xor eax, eax
call fcn.0040da9f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404bfc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404c11
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x404c23
xor eax, eax
jmp 0x404c55
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x404c47
cmp esi, eax
jae 0x404c1f
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404c39
cmp esi, eax
jae 0x404c1f
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret