joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405900
Capabilities:
Hash data with crc32

Disassembly:
cmp dword [ebp - 0xc], 0
jle 0x40c3a2
mov eax, dword [ebp - 4]
and eax, 1
je 0x404776
mov ecx, dword [ebp - 4]
shr ecx, 1
xor ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
jmp 0x403bc0
jmp 0x40d6a3
mov edx, dword [ebp - 4]
shr edx, 1
mov dword [ebp - 4], edx
jmp 0x403bc0
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0xedb88320
mov dword [ebp - 8], 0
jmp 0x40e93c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x40e93c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x46cff0], ecx
jmp 0x409719
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
jmp 0x402165
cmp dword [ebp - 8], 0x100
jge 0x407eea
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 8
jmp 0x402165

Function at 0x405d04
Capabilities:
Bypass uac via icmluautil

Disassembly:
cmp dword [ebp - 4], 0
jne 0x403d32
mov dword [ebp - 8], 0x80004005
jmp 0x40c22a
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x20]
push eax
push 4
push str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
call fcn.00409727
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402b22
jmp 0x40c22a
cmp dword [ebp - 8], 0
jl 0x408dc5
mov dword [ebp - 0xc], 1
jmp 0x403318
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 8], eax
cmp dword [ebp - 0x10], 0
jne 0x4044dd
jmp 0x40c22a
cmp dword [ebp + 8], 0
jne 0x4086f1
jmp 0x40c22a
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 8], 0x80004005
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
jmp 0x4044dd
lea eax, [ebp - 0x30]
push eax
push 0x413200
call dword [0x41307c]
test eax, eax
je 0x408f56
jmp 0x40c22a
mov dword [ebp - 0xc], 0
jmp 0x403318
lea ecx, [ebp - 0x20]
push ecx
push str.6EDD6D74_C007_4E75_B76A_E5740995E24C
call dword [0x413088]
test eax, eax
je 0x402dab
jmp 0x40c22a
cmp dword [ebp - 4], 0
je 0x403230
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
call ecx
jmp 0x403230
Function at 0x407d21
Capabilities:
Check os version

Disassembly:
cmp dword [0x46cf80], 0
je 0x407b2c
mov dword [ebp - 4], 3
jmp 0x40bebe
lea edx, [ebp - 0x114]
push edx
call fcn.0040895b
add esp, 4
push 0
push 0x30000080
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x114]
push eax
call dword [0x413030]
mov dword [0x46cfec], eax
cmp dword [0x46cfec], 0xffffffff
jne 0x40880d
xor eax, eax
jmp 0x40c393
call fcn.0040acfc
test eax, eax
jne 0x40c213
xor eax, eax
jmp 0x40c393
push 0x46c2dc
push 1
call fcn.0040c33b
add esp, 8
mov dword [0x46c2d8], eax
jmp 0x403072
mov dword [ebp - 4], 2
jmp 0x40bebe
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
call dword [0x41303c]
push eax
call fcn.00401b2c
add esp, 4
movzx ecx, al
mov dword [0x46cf80], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xa4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 5
je 0x40655c
jmp 0x402fc9
push 0
lea ecx, [ebp - 0x10]
push ecx
push 8
push 0x46cb40
push 0
push 0
push 0x7405c
mov edx, dword [0x46cfec]
push edx
call dword [0x46cfc8]
test eax, eax
jne 0x409e38
xor eax, eax
jmp 0x40c393
mov eax, dword [0x46cb40]
mov edx, dword [0x46cb44]
mov cl, 9
call fcn.0040572b
mov dword [0x46cb48], eax
mov dword [0x46cb4c], edx
mov eax, dword [0x46cfec]
push eax
call fcn.0040bdea
add esp, 4
push 0x46c530
call fcn.00401314
add esp, 4
test eax, eax
jne 0x40bcde
xor eax, eax
jmp 0x40c393
call fcn.0040d5c6
mov dword [0x46cb50], eax
mov dword [0x46cb54], edx
mov ecx, dword [0x46cb50]
or ecx, dword [0x46cb54]
jne 0x403d94
mov edx, dword [ebp - 8]
cmp dword [edx + 0xa4], 5
jne 0x40cbf2
mov eax, dword [0x46cb48]
sub eax, 0x800
mov ecx, dword [0x46cb4c]
sbb ecx, 0
mov dword [0x46cb50], eax
mov dword [0x46cb54], ecx
jmp 0x403d94
push 0x46c2dc
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040c33b
add esp, 8
mov dword [0x46c2d8], eax
jmp 0x403072
mov edx, dword [0x46cfec]
push edx
call dword [0x46cfe0]
mov eax, 1
jmp 0x40c393
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x40c393

Function at 0x40aea4
Capabilities:
Check os version

Disassembly:
call fcn.0040c13c
test eax, eax
jne 0x4044bc
jmp 0x40bfa2
push 0
call dword [0x413038]
jmp 0x40bfa2
call fcn.00403aee
test eax, eax
jne 0x40a95e
jmp 0x40bfa2
call fcn.004043ad
call fcn.00407d21
test eax, eax
je 0x402b44
push 0x927c0
call dword [0x46cfbc]
call fcn.004023f2
jmp 0x402b44
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
call fcn.0040d1f6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xa4], 5
jbe 0x401bd2
call fcn.00404369
jmp 0x401bd2
mov esp, ebp
pop ebp
ret
Function at 0x40b923
Capabilities:
Hash data using jshash

Disassembly:
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x404787
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jae 0x403d60
mov esi, dword [ebp - 4]
shl esi, 5
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
push ecx
call fcn.0040c911
add esp, 4
add esi, eax
mov edx, dword [ebp - 4]
shr edx, 2
add esi, edx
xor esi, dword [ebp - 4]
mov dword [ebp - 4], esi
jmp 0x402983
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 4], 0x4e67c6a7
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0
jmp 0x404787

Function at 0x40bc6b
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
lodsb al, byte [esi]
mov ebx, edx
shl ebx, 5
add eax, ebx
mov ebx, edx
shr ebx, 2
add eax, ebx
xor edx, eax
dec ecx
cmp ecx, 0
jne 0x402f59
mov eax, edx
pop esi
pop edx
pop ecx
pop ebx
pop ebp
ret 4
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
mov esi, dword [ebp + 8]
mov edx, 0x4e67c6a7
mov ecx, 0x10
jmp 0x402f59

Function at 0x40e911
Capabilities:
Encode data using xor

Disassembly:
lodsb al, byte [esi]
xor dl, al
shl edx, 1
dec ecx
jne 0x40a9f3
mov eax, edx
pop esi
pop edx
pop ecx
pop ebp
ret 8
push ebp
mov ebp, esp
push ecx
push edx
push esi
mov edx, 0
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp + 8]
jmp 0x40a9f3
Function at 0x20002360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x20002379
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x200023b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x200023b0
lea ebx, [ebx]
cmp esi, eax
jae 0x200023b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x200023a0
cmp esi, eax
jb 0x200023ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x20002d20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
mov al, 0xaa
push esi
mov byte [esp + 0x14], al
mov byte [esp + 0x15], al
mov byte [esp + 0x16], al
mov eax, dword [esp + 0x3c]
movzx esi, ax
push edi
mov edi, dword [esp + 0x38]
mov edx, eax
push esi
mov byte [esp + 0x22], al
push ecx
lea eax, [esp + 0x27]
shr edx, 8
xor ebx, ebx
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x27], 0x96
mov byte [esp + 0x28], 0x69
mov byte [esp + 0x29], dl
call fcn.20013870
mov eax, edi
add esp, 0xc
sub eax, 1
je 0x20002d9c
sub eax, 1
je 0x20002dcc
sub eax, 1
jne 0x20002e2f
push 0
lea edx, [esp + 0x14]
push edx
add esi, 7
push esi
lea eax, [esp + 0x24]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x20002e28
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.20012ef0
add esp, 0x1c
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 7
lea edx, [esp + 0x2c]
push edx
push 0x222020
push ebp
mov dword [esp + 0x34], ebx
call edi
test eax, eax
je 0x20002db7
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push esi
lea ecx, [esp + 0x33]
push ecx
push 0x222024
push ebp
call edi
test eax, eax
je 0x20002db7
pop edi
mov ebx, esi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.20012ef0
add esp, 0x1c
ret
mov ebx, dword [esp + 0x10]
sub ebx, 7
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.20012ef0
add esp, 0x1c
ret
Function at 0x20003970
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push esi
xor esi, esi
mov dword [esp + 8], ebx
mov byte [0x20027658], bl
cmp dword [0x20026260], ebx
je 0x200039d7
cmp dword [0x20027644], 0xffffffff
push edi
je 0x200039cc
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
inc esi
cmp esi, 0xb
jg 0x200039cc
movzx eax, word [0x200298a6]
mov ecx, dword [0x20027644]
push eax
push 0x20027658
push ecx
call sub.HID.DLL_HidD_SetOutputReport
movzx eax, al
cmp eax, ebx
jne 0x200039d2
push 0xa
call edi
jmp 0x200039a0
mov byte [0x2002b3f0], bl
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [0x20027644]
cmp eax, 0xffffffff
je 0x200039ff
movzx ecx, word [0x200298a6]
push ebx
lea edx, [esp + 0xc]
push edx
push ecx
push 0x20027658
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x200039d3
pop esi
mov byte [0x2002b3f0], bl
pop ebx
pop ecx
ret

Function at 0x20003a10
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push esi
xor esi, esi
xor edx, edx
mov byte [esp + 0xb], 1
mov byte [0x20028760], bl
cmp dword [0x20026260], ebx
je 0x20003ab4
cmp dword [0x20027650], 0xffffffff
je 0x20003aaa
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp edx, ebx
je 0x20003a4a
cmp byte [esp + 0xf], bl
je 0x20003aa5
inc esi
cmp esi, 4
jg 0x20003aa5
push 1
call edi
movzx eax, word [0x200298a4]
mov ecx, dword [0x20027650]
push eax
push 0x20028760
push ecx
call sub.HID.DLL_HidD_GetInputReport
movzx edx, al
cmp edx, ebx
je 0x20003a4a
cmp byte [0x2002a10e], bl
je 0x20003a80
mov byte [esp + 0xf], bl
movzx ecx, word [0x200298a4]
xor eax, eax
cmp ecx, ebx
jle 0x20003a40
lea ecx, [ecx]
cmp byte [eax + 0x20028760], bl
jne 0x20003a9f
inc eax
cmp eax, ecx
jl 0x20003a90
jmp 0x20003a40
mov byte [esp + 0xf], bl
jmp 0x20003a40
pop edi
cmp edx, ebx
jne 0x20003b1d
pop esi
mov byte [0x2002b3f0], bl
pop ebx
pop ecx
ret
mov eax, dword [0x20027650]
cmp eax, 0xffffffff
je 0x20003adc
movzx edx, word [0x200298a4]
push 0x20029760
push 0x20027654
push edx
push 0x20028760
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x20029788]
push 0x1770
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
je 0x20003b10
cmp eax, 0x102
jne 0x20003b05
mov ecx, dword [0x20027650]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
call fcn.20003850
mov byte [0x2002b3f0], bl
mov edx, dword [0x20029788]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
pop ebx
pop ecx
ret

Function at 0x20003b30
Capabilities:
Read file on windows

Disassembly:
mov al, byte [0x2002b3f0]
test al, al
jne 0x20003b43
call fcn.20003650
mov byte [0x2002b3f0], al
cmp al, 1
jne 0x20003b5a
cmp dword [0x2002764c], 0
jne 0x20003b5a
call fcn.20003970
jmp fcn.20003a10
ret
Function at 0x20003eb0
Capabilities:
Check if file exists
Create directory
Set file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x20003eef
mov al, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.20012ef0
add esp, 0x20c
ret
lea edx, [esp + 0x108]
mov eax, esi
sub edx, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x20003f00
lea eax, [esp + 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x20003f14
sub eax, edx
mov cl, byte [esp + eax + 0x107]
lea eax, [esp + eax + 0x107]
cmp cl, 0x5c
je 0x20003f35
cmp cl, 0x2f
jne 0x20003f38
mov byte [eax], 0
lea eax, [esp + 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x20003f42
push ebx
push ebp
sub eax, edx
push 0x100
mov ebx, eax
lea eax, [esp + 0x14]
push 0
push eax
call fcn.200132c0
add esp, 0xc
xor ebp, ebp
test ebx, ebx
jle 0x2000402a
mov byte [esp + 0xd], 0
push edi
mov al, byte [esp + ebp + 0x114]
cmp al, 0x5c
je 0x20003fa0
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x20003f88
lea edi, [esp + 0x14]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x20003f96
jmp 0x20003fe8
push 0
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x20003fc1
push 0x80
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
mov byte [esp + 0x10], 0x5c
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x20003fd0
lea edi, [esp + 0x14]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x20003fe0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [ebx - 1]
rep movsb byte es:[edi], byte [esi]
cmp ebp, eax
jne 0x20004020
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x20004020
push 0x80
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
inc ebp
cmp ebp, ebx
jl 0x20003f73
pop edi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, dword [esp + 0x214]
pop ebp
test eax, eax
pop ebx
setne al
pop esi
xor ecx, esp
call fcn.20012ef0
add esp, 0x20c
ret
Function at 0x20004060
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
sub esp, 0x414
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x410], eax
mov eax, dword [esp + 0x418]
push ebx
push ebp
mov ebp, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x430]
push edi
mov edi, dword [esp + 0x430]
push 0x3ff
lea ecx, [esp + 0x25]
push 0
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
call fcn.200132c0
mov ebx, dword [esp + 0x444]
movzx eax, bx
push eax
mov dl, bl
lea ecx, [esp + 0x33]
inc dl
push esi
push ecx
mov byte [esp + 0x38], 0x55
mov byte [esp + 0x39], 0xaa
mov byte [esp + 0x3a], dl
call fcn.20013870
add ebx, 3
movzx esi, bx
add esp, 0x18
xor cl, cl
xor eax, eax
test esi, esi
jle 0x200040f9
lea ebx, [ebx]
xor cl, byte [esp + eax + 0x20]
inc eax
cmp eax, esi
jl 0x200040f0
mov eax, edi
inc ebx
sub eax, 1
mov byte [esp + esi + 0x20], cl
je 0x2000410a
sub eax, 2
jne 0x20004125
push 0
lea edx, [esp + 0x14]
push edx
movzx eax, bx
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x20004129
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x420]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.20012ef0
add esp, 0x414
ret
Function at 0x20004150
Capabilities:
Check for time delay via gettickcount
Encode data using xor
Read file on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x824], eax
mov eax, dword [esp + 0x830]
mov ecx, dword [esp + 0x834]
mov edx, dword [esp + 0x83c]
push ebx
mov dword [esp + 0x14], eax
xor eax, eax
push ebp
mov ebp, dword [esp + 0x840]
mov dword [esp + 0x25], eax
mov word [esp + 0x29], ax
push esi
mov eax, ecx
xor esi, esi
sub eax, 1
push edi
mov edi, dword [esp + 0x83c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], edx
mov byte [esp + 0x2c], 0
je 0x20004219
sub eax, 2
jne 0x20004328
push eax
lea eax, [esp + 0x14]
push eax
push 0x800
lea ecx, [esp + 0x40]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x200042e8
cmp dword [esp + 0x10], 7
jbe 0x200042e8
mov ax, word [esp + 0x34]
cmp al, 0x55
jne 0x200042e8
cmp ah, 0xaa
jne 0x200042e8
mov bl, byte [esp + 0x36]
movzx esi, bl
push esi
lea edx, [esp + 0x3b]
push edx
push ebp
mov word [esp + 0x38], ax
call fcn.20013870
add esp, 0xc
jmp 0x2000432c
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
cmp dword [esp + 0x14], esi
jne 0x200042d8
mov edi, edi
cmp dword [esp + 0x20], 3
jb 0x20004294
test esi, esi
jne 0x20004298
push esi
lea edx, [esp + 0x14]
push edx
push 3
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x200042e8
mov eax, 3
cmp dword [esp + 0x10], eax
jne 0x200042e8
cmp byte [esp + 0x2c], 0x55
jne 0x200042ed
cmp byte [esp + 0x2d], 0xaa
jne 0x200042ed
movzx esi, byte [esp + 0x2e]
cmp esi, 0xff
jne 0x20004294
mov esi, dword [esp + 0x20]
add esi, 0xfffffffd
test esi, esi
je 0x2000429e
cmp dword [esp + 0x20], esi
jae 0x20004306
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
sub eax, ebp
cmp eax, 0xbb8
jbe 0x200042b5
test esi, esi
je 0x200042e8
cmp eax, 0x1388
ja 0x200042e8
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ClearCommError]
cmp dword [esp + 0x14], 0
je 0x20004240
cmp dword [esp + 0x20], 0
je 0x200042e8
push 8
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov eax, 3
mov ecx, dword [esp + 0x834]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.20012ef0
add esp, 0x828
ret
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x14]
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x200042e8
cmp esi, dword [esp + 0x10]
jne 0x200042e8
mov ebp, dword [esp + 0x18]
mov bl, byte [esp + 0x2e]
cmp bl, 0xff
je 0x2000434c
xor bl, byte [esp + 0x2d]
xor eax, eax
xor bl, byte [esp + 0x2c]
test esi, esi
jle 0x20004348
nop
xor bl, byte [eax + ebp]
inc eax
cmp eax, esi
jl 0x20004340
test bl, bl
jne 0x200042e8
mov edx, dword [esp + 0x28]
mov dword [edx], esi
xor eax, eax
jmp 0x200042ed
Function at 0x200080c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov bl, byte [esp + 8]
mov al, bl
dec al
cmp al, 1
ja 0x200081d7
push esi
push 0x100
push 0
push 0x20027658
call fcn.200132c0
mov edx, dword [esp + 0x20]
mov cl, dl
add cl, 4
add esp, 0xc
xor eax, eax
mov byte [0x20027658], 0
mov byte [0x20027659], 0x55
mov byte [0x2002765a], 0xaa
mov byte [0x2002765b], cl
mov byte [0x2002765c], 0x33
mov byte [0x2002765d], 0xff
mov byte [0x2002765e], bl
test edx, edx
jle 0x20008142
mov esi, dword [esp + 0x10]
sub esi, 0x2002765f
mov edi, edi
mov cl, byte [esi + eax + 0x2002765f]
mov byte [eax + 0x2002765f], cl
inc eax
cmp eax, edx
jl 0x20008130
mov eax, 1
lea esi, [edx + 6]
xor cl, cl
cmp esi, eax
jl 0x2000815b
xor cl, byte [eax + 0x20027658]
inc eax
cmp eax, esi
jle 0x20008150
push 0x1000
push 0
push 0x20028760
mov byte [edx + 0x2002765f], cl
call fcn.200132c0
add esp, 0xc
call fcn.20003b30
mov al, byte [0x20028763]
pop esi
cmp al, 0x17
jne 0x200081ba
mov edx, dword [0x20028766]
mov eax, dword [esp + 0x14]
mov dword [eax], edx
mov ecx, dword [0x2002876a]
mov dword [eax + 4], ecx
mov edx, dword [0x2002876e]
mov dword [eax + 8], edx
mov ecx, dword [0x20028772]
mov dword [eax + 0xc], ecx
mov edx, dword [0x20028776]
mov dword [eax + 0x10], edx
xor eax, eax
pop ebx
ret 0x10
cmp al, 4
jne 0x200081ce
movzx ecx, byte [0x20028766]
or eax, 0xffffffff
sub eax, ecx
pop ebx
ret 0x10
mov eax, 0xfffffffd
pop ebx
ret 0x10
mov eax, 0xfffffffe
pop ebx
ret 0x10
Function at 0x2000a6e0
Capabilities:
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x20026464]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
mov esi, dword [esp + 0x38]
lea eax, [esi - 1]
cmp eax, 0xf
ja 0x2000a8c4
push ebx
xor ebx, ebx
cmp dword [0x2002a21c], ebx
je 0x2000a710
push esi
call sym.SDTAPI.DLL_SDT_ClosePort
mov ecx, dword [esp + 0x40]
push ecx
push esi
call fcn.20002af0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x2000a73c
pop ebx
mov eax, 1
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.20012ef0
add esp, 0x30
ret 0xc
mov al, 3
mov byte [esp + 0xc], 0xaa
mov byte [esp + 0xd], 0xaa
mov byte [esp + 0xe], 0xaa
mov byte [esp + 0xf], 0x96
mov edx, dword [esp + 0xc]
mov byte [esp + 0x10], 0x69
mov byte [esp + 0x11], bl
mov cx, word [esp + 0x10]
push edi
mov edi, dword [esp + 0x48]
mov byte [esp + 0x1e], al
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], edx
mov word [esp + 0x1c], cx
xor eax, eax
lea esp, [esp]
cmp edi, dword [eax*4 + 0x2002624c]
je 0x2000a78f
inc eax
cmp eax, 5
jl 0x2000a780
cmp eax, 5
je 0x2000a7d3
mov byte [esp + 0x11], al
xor al, 0x63
push ebx
mov byte [esp + 0x25], al
lea eax, [esp + 0x10]
push eax
push 0xa
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x20], 0x60
mov dx, word [esp + 0x20]
push esi
mov word [esp + 0x33], dx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x2000a7cc
cmp dword [esp + 0xc], 0xa
je 0x2000a7ec
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 0x21
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.20012ef0
add esp, 0x30
ret 0xc
push ebx
lea edx, [esp + 0x10]
push edx
push 0xb
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x2000a8a4
cmp dword [esp + 0xc], 0xb
jne 0x2000a8a4
mov eax, dword [esp + 0x2c]
mov cx, word [esp + 0x30]
mov dl, byte [esp + 0x32]
mov ebx, dword [esp + 0x33]
mov dword [esp + 0x24], eax
mov word [esp + 0x28], cx
mov byte [esp + 0x2a], dl
mov dword [esp + 0x10], ebx
cmp al, 0xaa
jne 0x2000a8a4
mov ebx, eax
shr ebx, 8
cmp bl, al
jne 0x2000a8a4
mov ebx, eax
shr ebx, 0x10
cmp bl, al
jne 0x2000a8a4
shr eax, 0x18
cmp al, 0x96
jne 0x2000a8a4
cmp cl, 0x69
jne 0x2000a8a4
cmp dl, 4
jne 0x2000a8a4
xor al, al
mov ecx, 5
xor al, byte [esp + ecx + 0x24]
inc ecx
cmp ecx, 7
jl 0x2000a863
xor ecx, ecx
nop
xor al, byte [esp + ecx + 0x10]
inc ecx
cmp ecx, 4
jl 0x2000a870
push esi
test al, al
jne 0x2000a8a5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [esp + 0x12]
mov dword [0x2002a114], edi
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.20012ef0
add esp, 0x30
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov eax, 3
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.20012ef0
add esp, 0x30
ret 0xc
mov ecx, dword [esp + 0x30]
pop esi
xor ecx, esp
mov eax, 1
call fcn.20012ef0
add esp, 0x30
ret 0xc