joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495fd5
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 0x4960ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4960ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.004c184b
mov esi, eax
test esi, esi
je 0x4960ed
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 0x4960ed
mov ecx, esi
call fcn.00495f60
cmp edi, eax
jge 0x4960ed
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 0x496073
mov dword [esp + 0x34], 1
jmp 0x4960ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4960ed
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.00495560
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 0x49abe0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xbd6634]
xor edx, edx
cmp eax, edx
jne 0x49ac06
xor eax, eax
mov byte [eax + 0xbd6534], al
inc eax
cmp eax, 0x100
jl 0x49abee
mov dword [0xbd6634], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xbd6534
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x49ac97
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49ac6a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x49ac38
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x49aca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x49acf3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49acda
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a1670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ce4ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a1f90
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xb87e14
call fcn.004bfb5f
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a1703
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004bfb5f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a16fc
push 0
mov ecx, eax
call fcn.00498810
mov dword [esi + 0xc], eax
jmp 0x4a1705
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a1705
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4c21ef
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c2227
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.004c0279
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c0251
jmp 0x4c2233
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c38e1
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 0x4c3923
call fcn.004c9391
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c3923
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c391a
xor eax, eax
jmp 0x4c392b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c3931
pop edi
pop esi
pop ebx
ret 4
Function at 0x4c98c1
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 0x4c98ef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c990d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c9827
jmp 0x4c990d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c990d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c9827
test edi, edi
mov eax, edi
jne 0x4c98f7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x57002f38
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp + 0x56], eax
push esi
push edi
push ebx
push ebp
sub esp, 0x2c
mov ebp, 0x57026420
xor edx, edx
mov eax, dword [ebp + 4]
call fcn.5700325e
mov dword [esp + 0x10], eax
mov edx, dword [ebp + 0x24]
call fcn.570031b6
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x24], 0
lea edx, [esp + 0x24]
call fcn.5700325e
mov eax, dword [ebp + 0x44]
push eax
push 0
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov ebx, eax
mov eax, ebx
mov edx, dword [ebp + 0x44]
call fcn.570032f6
mov edi, dword [esp + 0x24]
movzx edx, word [edi]
test edx, edx
je 0x57002fb5
xor esi, esi
movzx edx, word [edi + esi*2]
mov word [ebx + esi*2], dx
inc esi
movzx ecx, word [edi + esi*2]
test ecx, ecx
jne 0x57002fa4
movzx esi, word [ebx]
xor edx, edx
mov ecx, dword [ebp + 0x18]
test esi, esi
je 0x57002fce
inc edx
lea edi, [ebx + edx*2]
movzx esi, word [edi]
test esi, esi
jne 0x57002fc1
jmp 0x57002fd0
mov edi, ebx
movzx esi, word [edi - 2]
cmp esi, 0x5c
je 0x57002fea
invalid

Function at 0x57002f46
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp + 0x56], eax
push esi
push edi
push ebx
push ebp
sub esp, 0x2c
mov ebp, 0x57026420
xor edx, edx
mov eax, dword [ebp + 4]
call fcn.5700325e
mov dword [esp + 0x10], eax
mov edx, dword [ebp + 0x24]
call fcn.570031b6
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x24], 0
lea edx, [esp + 0x24]
call fcn.5700325e
mov eax, dword [ebp + 0x44]
push eax
push 0
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov ebx, eax
mov eax, ebx
mov edx, dword [ebp + 0x44]
call fcn.570032f6
mov edi, dword [esp + 0x24]
movzx edx, word [edi]
test edx, edx
je 0x57002fb5
xor esi, esi
movzx edx, word [edi + esi*2]
mov word [ebx + esi*2], dx
inc esi
movzx ecx, word [edi + esi*2]
test ecx, ecx
jne 0x57002fa4
movzx esi, word [ebx]
xor edx, edx
mov ecx, dword [ebp + 0x18]
test esi, esi
je 0x57002fce
inc edx
lea edi, [ebx + edx*2]
movzx esi, word [edi]
test esi, esi
jne 0x57002fc1
jmp 0x57002fd0
mov edi, ebx
movzx esi, word [edi - 2]
cmp esi, 0x5c
je 0x57002fea
invalid
Function at 0x57002fd8
Capabilities:
Get file size
Read file on windows

Disassembly:
adc dword [ebx], esi
mul byte [esi - 0x77]
xor al, 0x53
xor esi, esi
mov word [ebx + edx*2], si
dec edx
movzx edi, word [ebx + edx*2 - 2]
cmp edi, 0x5c
jne 0x57002fd9
cmp byte [ecx], 0
je 0x57003001
xor esi, esi
movsx edi, byte [esi + ecx]
inc esi
mov word [ebx + edx*2], di
inc edx
cmp byte [esi + ecx], 0
jne 0x57002ff1
xor edx, edx
push edx
push 0x80
push 3
push edx
push 1
push 0x80000000
push ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x570031a0
push 0
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
push 4
push 0x1000
mov eax, dword [ebp + 0x4c]
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
xor eax, eax
lea edx, [esp + 0x28]
mov dword [edx], eax
push eax
push edx
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x57003062
push 0
call dword [esp + 0x10]
mov edx, dword [ebp + 0x54]
mov ebx, dword [esp + 0x28]
add ebx, esi
lea eax, [esi + edx]
mov ecx, dword [eax]
lea edx, [eax + 8]
mov edi, dword [eax + 4]
test ecx, ecx
jbe 0x57003086
xor esi, esi
inc esi
add dword [edx], edi
add edx, 4
ret 0x3b04
int1
jb 0x5700307c
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax + 1]
add dword [ebp + 0x448b0834], ecx
and al, 0x10
push 0
call dword [esp + 0x10]
jmp 0x57003025

Function at 0x570031b6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x14
mov esi, eax
mov dword [esp + 8], edx
test esi, esi
je 0x57003200
mov ebp, dword [esi + 0x3c]
mov edx, dword [ebp + esi + 0x78]
mov dword [esp + 0x10], edx
mov ecx, dword [edx + esi + 0x18]
mov ebp, dword [edx + esi + 0x20]
add ebp, esi
mov dword [esp + 0xc], ecx
test ecx, ecx
jbe 0x57003200

Function at 0x57005204
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x570052a4
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call sub.rtl120.bpl__System__LStrSetLength_qqrv
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x5700522e
cmp byte [esp], 0
je 0x57005273
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x570052b0
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
push eax
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call sub.rtl120.bpl__System_Move_qqrpxvpvi
mov edx, ebx
mov eax, edi
xor ecx, ecx
call sub.rtl120.bpl__System__LStrSetLength_qqrv
jmp 0x570052b0
mov eax, edi
mov edx, 0x570052c4
call sub.rtl120.bpl__System__LStrAsg_qqrpvpxv
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x570052c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x5700536b
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call sub.rtl120.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
add bp, 0x30
mov word [eax + esi*2 - 2], bp
dec esi
test ebx, ebx
jne 0x570052f0
cmp byte [esp], 0
je 0x57005339
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x57005377
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
push eax
mov eax, edi
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
lea eax, [eax + esi*2]
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
pop edx
call sub.rtl120.bpl__System_Move_qqrpxvpvi
mov edx, ebx
mov eax, edi
call sub.rtl120.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
jmp 0x57005377
mov eax, edi
mov edx, 0x5700538c
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x57006a04
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp byte [0x57024388], 0
jne 0x57006a38
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x57006a31
movzx eax, byte [esp]
mov byte [0x57024388], al
jmp 0x57006a38
mov byte [0x57024388], 0x2c
movzx eax, byte [0x57024388]
pop edx
ret

Function at 0x57006a44
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp word [0x5702438c], 0
jne 0x57006a7c
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x57006a73
movzx eax, word [esp]
mov word [0x5702438c], ax
jmp 0x57006a7c
mov word [0x5702438c], 0x2c
movzx eax, word [0x5702438c]
pop edx
ret
Function at 0x123b0
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret 4

Function at 0x13ec8
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret 4

Function at 0x14038
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
pop ebp
ret 4
Function at 0x40324c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40325b
pop dword [ebp - 0x2c]
mov eax, 0xb6ed449d
add eax, 0x4952edbe
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xb8d3d78e
add dword [ebp - 0x3c], 0x957e6dbd
mov dword [ebp - 0x38], 0xec57a195
add dword [ebp - 0x38], 0x45dbaab0
mov dword [ebp - 0x34], 0x3cb3140c
sub dword [ebp - 0x34], 0xf066cfde
mov dword [ebp - 0x30], 0xe1e228af
add dword [ebp - 0x30], 0x1e1dd751
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xa1d6cbad
add eax, 0x5e69b4cb
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x285c0025
add dword [ebp - 0x3c], 0x4c166931
mov dword [ebp - 0x38], 0xc451a41c
add dword [ebp - 0x38], 0x7d1abd59
mov dword [ebp - 0x34], 0xba99f124
add dword [ebp - 0x34], 0xa8d57b48
mov dword [ebp - 0x30], 0xa66960d5
add dword [ebp - 0x30], 0x59969f2b
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xa11419c9
sub eax, 0xa0d3994d
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a4c0
push 0
call eax
mov ecx, 0x659e63e4
sub ecx, 0x659e0ed4
xor ebx, ebx
add ebx, eax
mov edi, 0x2dd5bc87
sub edi, 0x2d902a87
add edi, dword [ebp - 0x2c]
mov edx, 0x98957a09
add edx, 0xa019eb59
add dword [ebp - 0xc], edx
mov esi, dword [edi]
xor dword [ebp - 0x1c], edi
xor esi, edx
add dword [ebp - 0x28], edi
mov dword [ebx], esi
sub dword [ebp - 0xc], 0x574a0ff5
add ebx, 0x8c0d8144
add ebx, 0x73f27ec0
add edi, 4
loop 0x40337f
add eax, 0x14713
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x1d8018a2
sub ecx, 0x1d4018a2
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x436940
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x26000]
push edi
jmp 0x43695a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x436961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x436950
mov eax, 1
add ebx, ebx
jne 0x436973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x436968
jne 0x436984
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x436968
xor ecx, ecx
sub eax, 3
jb 0x436998
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x436a0a
mov ebp, eax
add ebx, ebx
jne 0x4369a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4369b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4369d4
inc ecx
add ebx, ebx
jne 0x4369c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4369b5
jne 0x4369d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4369b5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4369f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4369e5
jmp 0x436956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4369f4
add edi, ecx
jmp 0x436956
pop esi
mov edi, esi
mov ecx, 0xa57
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x436a12
cmp byte [edi], 0x12
jne 0x436a12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x436a17
lea edi, [esi + 0x34000]
mov eax, dword [edi]
or eax, eax
je 0x436a8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x47288]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x47368]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x436a44
mov ecx, edi
jns 0x436a73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x47370]
or eax, eax
je 0x436a89
mov dword [ebx], eax
add ebx, 4
jmp 0x436a61
call dword [esi + 0x4736c]
mov ebp, dword [esi + 0x47374]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x436ac3
sub esp, 0xffffff80
jmp 0x41942f
Function at 0x4011a0
Capabilities:
Create service
Start service

Disassembly:
push ebx
push edi
push 0xf003f
push 0
push 0
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4011d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x8e3e64]
push str.OpenSCManager_error___d_n
push eax
call fcn.00402140
add esp, 0xc
pop edi
pop ebx
ret
push 0
push 0
push 0
push 0
push 0
push ebx
push 1
push 3
push 1
push 0xf01ff
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x401219
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x8e3e64]
push eax
push ebx
push esi
push str.CreateService__s__imagepath_:__s_error___d_n
push ecx
call fcn.00402140
add esp, 0x14
pop edi
pop ebx
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call ebp
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x401256
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x8e3e64]
push eax
push esi
push str.OpenService__s__error___d_n
push edx
call fcn.00402140
add esp, 0x10
pop ebp
pop edi
pop ebx
ret
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x401284
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x8e3e64]
push esi
push str.StartService__s__error___d_n
push eax
call fcn.00402140
add esp, 0x10
pop ebp
pop edi
pop ebx
ret
mov ecx, dword [0x8e3e64]
push esi
push str.StartService__s__OK___d_n
push ecx
call fcn.00402140
add esp, 0xc
push edi
call ebp
push ebx
call ebp
pop ebp
pop edi
pop ebx
ret
Function at 0x4012b0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push str.ntdll.dll
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.ZwLoadDriver
push esi
call edi
push str.ZwUnloadDriver
push esi
mov ebx, eax
call edi
push 0x429660
push esi
mov dword [esp + 0x1c], eax
call edi
push 0x429680
push esi
mov ebp, eax
call edi
push 0x429694
push esi
mov dword [esp + 0x20], eax
call edi
push 0x4296ac
push esi
mov dword [esp + 0x28], eax
call edi
mov dword [esp + 0x28], eax
test ebx, ebx
je 0x4013de
cmp dword [esp + 0x14], 0
je 0x4013de
test ebp, ebp
je 0x4013de
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4013de
cmp dword [esp + 0x20], 0
je 0x4013de
test eax, eax
je 0x4013de
push 0x104
call fcn.00402110
mov esi, eax
mov eax, dword [esp + 0x34]
push eax
push str.RegistryMachineSystemCurrentControlSetServices_s
push 0x104
push esi
call fcn.00402440
add esp, 0x14
push esi
lea ecx, [esp + 0x1c]
push ecx
call edi
push 1
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call ebp
test eax, eax
jne 0x4013de
lea ecx, [esp + 0x20]
push ecx
call ebx
test eax, eax
je 0x4013a7
cmp eax, 0xc000010e
je 0x4013a7
cmp eax, 0xc0000035
jne 0x4013ae
mov esi, 1
jmp 0x4013b2
mov esi, dword [esp + 0x10]
test eax, eax
je 0x4013cb
mov edx, dword [0x8e3e64]
push eax
push str.ZwLoadDriver_error___8x_n
push edx
call fcn.00402140
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret