joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ac000
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004a3b97
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x46b8a3
xor al, al
jmp 0x46b9cf
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x46b8c5
xor al, al
jmp 0x46b9cf
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x46b8d8
xor al, al
jmp 0x46b9cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x46b8ec
xor al, al
jmp 0x46b9cf
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00497a41
test eax, eax
jne 0x46b920
xor al, al
jmp 0x46b9cf
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x4bb984
mov dword [esp + 0x20], ebp
call fcn.004a3b97
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004a0932
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004a0989
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x46b9b4
mov ax, word [ebx]
test ax, ax
je 0x46b9a6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0046b9f0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x46b98a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004a0989
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x46bf30
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004a201e
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x46bf76
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00488c28
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x4dae1c
push ecx
call fcn.0048a3b1
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x472cf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x472d3c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x472d3c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x472d26
push eax
call ebp
test ax, ax
jl 0x472d34
inc esi
add edi, 4
cmp esi, 6
jb 0x472d18
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.004729f0
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x476840
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4768a0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4768a0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4768a0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4768a0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4768b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x477af0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x477b93
test eax, eax
jbe 0x477b93
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x477b93
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x477b3e
xor esi, esi
jmp 0x477b44
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x477b6f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00407c90
add esi, eax
push esi
mov ebx, esi
call fcn.00407c90
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x477b50
pop ebp
test edi, edi
pop edi
jne 0x477b93
test ebx, ebx
je 0x477b93
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00489770
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x477cb5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x477dcd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x477dcd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049b47a
mov esi, eax
test esi, esi
je 0x477dcd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x477dcd
mov ecx, esi
call fcn.00477c40
cmp edi, eax
jge 0x477dcd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x477d53
mov dword [esp + 0x34], 1
jmp 0x477dae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x477dcd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00477230
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x47b040
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47b08a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x47b0b9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x47b0fb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x49be1e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49be56
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00499ec3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00499e9b
jmp 0x49be62
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49d619
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49d65b
call fcn.004a3b97
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49d65b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49d652
xor eax, eax
jmp 0x49d663
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049d669
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a40c7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a40f5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a4113
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a402d
jmp 0x4a4113
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a4113
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a402d
test edi, edi
mov eax, edi
jne 0x4a40fd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001000
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov ax, word [esi]
add esi, 2
cmp ax, 0x22
jne 0x10001044
push 0x22
push esi
call fcn.10001096
mov edi, eax
add esp, 8
test edi, edi
je 0x1000105b
push edi
call fcn.10001080
add esp, 4
cmp eax, 2
ja 0x1000103f
mov esi, 0x100050d0
jmp 0x1000105b
lea esi, [edi + 4]
jmp 0x1000105b
push 0x20
push esi
call fcn.10001096
add esp, 8
test eax, eax
mov esi, 0x100050d4
je 0x1000105b
lea esi, [eax + 2]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0
push 0x3e8
push ecx
push esi
push edx
push eax
call sub.PBVM125.dll_Ordinal_67
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x10001353
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x100072f8], esi
push edi
jne 0x10001373
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x100072f4], esi
mov byte [0x100072f0], al
jne 0x100013d9
mov ecx, dword [0x10007828]
test ecx, ecx
je 0x100013ba
mov eax, dword [0x10007824]
sub eax, 4
cmp eax, ecx
jmp 0x100013b3
mov eax, dword [eax]
test eax, eax
je 0x100013a5
call eax
mov eax, dword [0x10007824]
sub eax, 4
cmp eax, dword [0x10007828]
mov dword [0x10007824], eax
jae 0x1000139d
mov eax, 0x1000701c
mov esi, 0x10007020
cmp eax, esi
mov edi, eax
jae 0x100013d9
mov eax, dword [edi]
test eax, eax
je 0x100013d2
call eax
add edi, 4
cmp edi, esi
jb 0x100013ca
mov eax, 0x10007024
mov esi, 0x10007028
cmp eax, esi
mov edi, eax
jae 0x100013f8
mov eax, dword [edi]
test eax, eax
je 0x100013f1
call eax
add edi, 4
cmp edi, esi
jb 0x100013e9
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x10001412
push dword [ebp + 8]
mov dword [0x100072f8], 1
call fcn.100012b9
pop ebp
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x404301
Capabilities:
Log keystrokes via polling
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffadc
push esi
lea esi, [esp + 0x40]
mov dword [esi], 0x2e455845
mov dword [esi + 4], 0
push esi
call dword [sym.imp.USER32.dll_CharLowerA]
cmp dword [esi], 0x2e657865
jne 0x404332
cmp eax, esi
je 0x404333
leave
ret 4
add byte [ebx - 0x17a7dbcc], cl
sbb byte [eax], al
add byte [eax], al
mov esi, dword [esp]
pop eax
call fcn.00404354
cmp eax, 0
je 0x40434b
cmp eax, edx
jbe 0x404363
jmp eax
push eax
notrack jmp dword ds:[sym.imp.KERNEL32.dll_ExitProcess]
call 0x23408638
lds eax, [eax + 0x3b]
les esp, [esi]
jp 0x404372
call dword es:[sym.imp.USER32.dll_GetKeyState]
dec eax
mov esp, 0x480042d0
and eax, 0x7ffe
sub ax, 0x7ffc
xchg ecx, eax
push ecx
ror dword [esp], 4
rol dword [esp], 7
pop ecx
xchg ecx, eax
call dword es:[eax*4 + sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
dec eax
and eax, 6
lea eax, [eax*2 - 0x5b]
lea ecx, [0]
sub ecx, 0x10000
or eax, ecx
and eax, 0xffffffff
je 0x404372
push eax
add ecx, esp
xor dword [ecx + 0x10000], 0xffbf5c43
je 0x404372
sub ecx, esp
pop eax
ret

Function at 0x404354
Capabilities:
Log keystrokes via polling

Disassembly:
push esp
push 0
mov eax, ebp
push 0
push 0x10000
call dword es:[sym.imp.GDI32.dll_SetDCBrushColor]
and eax, ebp
inc eax
cmp eax, esp
jp 0x404372
Function at 0x401300
Capabilities:
Get common file path

Disassembly:
sub esp, 0x234
push esi
mov esi, dword [esp + 0x23c]
mov dword [esp + 4], 0
mov dword [0x40e1f4], esi
call fcn.004016a0
lea eax, [esp + 8]
mov dword [esp + 8], 0x30
push eax
push 0x8002
push 0
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x401349
pop esi
add esp, 0x234
ret 0x10
push 0x77
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 8]
mov dword [esp + 0x30], str.GPINSClass_JH
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x40137e
xor eax, eax
pop esi
add esp, 0x234
ret 0x10
mov eax, dword [0x40d268]
mov ecx, dword [0x40e1f4]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x138]
push 0x100
push edx
push eax
push ecx
call esi
mov dword [0x40e1fc], 0
mov edx, dword [esp + 0x30]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
mov dword [0x40e1fc], eax
jne 0x401404
mov eax, dword [esp + 0x30]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x40e1fc], eax
push 0x40e200
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 4]
push edx
call fcn.00401480
add esp, 4
test eax, eax
jne 0x40143d
pop esi
add esp, 0x234
ret 0x10
mov edx, dword [0x40d24c]
mov eax, dword [0x40e1f4]
lea ecx, [esp + 0x38]
push 0x100
push ecx
push edx
push eax
call esi
lea ecx, [esp + 0x38]
push ecx
push str.32770
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4013d9
xor eax, eax
pop esi
add esp, 0x234
ret 0x10
mov ecx, dword [0x40d270]
mov edx, dword [0x40e1f4]
lea eax, [esp + 0x38]
push 0x100
push eax
push ecx
push edx
call esi
mov eax, dword [0x40d27c]
mov ecx, dword [0x40e1f4]
push 0
push 0x4010b0
push 0
push eax
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop esi
add esp, 0x234
ret 0x10
Function at 0x401480
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x30c
mov dl, byte [0x40e30c]
push ebx
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x219]
mov byte [esp + 0x218], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x119]
mov byte [esp + 0x118], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0x100
push ecx
push 1
stosb byte es:[edi], al
mov eax, dword [esp + 0x324]
push 0
push str.SOFTWAREMicrosoftCryptographyDefaultsProviderBOCOM_2010USBKey_HDE_CSP_v1.0
push 0x80000002
mov dword [esp + 0x24], 0
mov dword [eax], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40151e
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edi, str.Image_Path
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push 0
push ecx
push edx
call ebx
test eax, eax
je 0x401586
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov edi, str.CSP_Version
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x118]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push 0
push ecx
push edx
call ebx
test eax, eax
je 0x4015eb
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x30c
ret
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x30c
ret
Function at 0x4018a0
Capabilities:
Create process on windows
Start service

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 4]
mov dword [esp + 4], 0x3c
push ecx
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], str._install
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x401927
pop edi
add esp, 0x3c
ret
push ebx
push esi
push 0xf01ff
push str.BOCOM_2010USBKey_HDE_mon_Srv
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x401954
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x3c
ret

Function at 0x401970
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x40d364
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop edi
add esp, 0x3c
ret

Function at 0x4019e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], str.open
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], str._remove
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
pop edi
add esp, 0x3c
ret
Function at 0x401a50
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
xor esi, esi
push ecx
push ebx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401aef
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x401aef
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x24]
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push edx
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401ad1
lea eax, [esp + 0x1c]
push 0
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov edi, 1
jne 0x401ad5
mov edi, dword [esp + 0x10]
test esi, esi
je 0x401ae0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret