joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6800
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x24]
cmp al, 0xb
jne 0x4a68a8
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x20]
push 0
push eax
mov eax, dword [esi + 0x14]
add ecx, eax
push ecx
push edx
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x4a68c9
test eax, eax
jne 0x4a683e
mov byte [esi + 0x10], 3
mov eax, 0xffffff81
pop esi
ret
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
sub ecx, eax
add edx, eax
test ecx, ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
jne 0x4a690f
mov ecx, dword [esi + 0x14]
xor eax, eax
mov byte [esi + 0x24], 0xc
mov ax, word [ecx + 1]
add eax, 0xfffffffd
test eax, eax
mov dword [esi + 0x28], eax
jne 0x4a6886
mov byte [esi + 0x24], 0xb
mov dword [esi + 0x28], 3
mov dword [esi + 0x2c], 0
mov eax, 0xffffff83
pop esi
ret
cmp eax, dword [esi + 0x1c]
jbe 0x4a690f
mov byte [esi + 0x24], 0xb
mov dword [esi + 0x28], 3
mov dword [esi + 0x2c], 0
mov eax, 0xffffff7c
pop esi
ret
cmp al, 0xc
jne 0x4a687f
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x20]
push 0
push edx
mov edx, dword [esi + 0x2c]
add eax, edx
push eax
push ecx
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x4a68e6
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4a68df
mov dword [esi + 4], eax
mov eax, 0xffffff7f
pop esi
ret
mov eax, 0xffffff80
pop esi
ret
test eax, eax
jne 0x4a68f5
mov byte [esi + 0x10], 3
mov eax, 0xffffff81
pop esi
ret
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
sub edx, eax
add ecx, eax
mov eax, edx
mov dword [esi + 0x28], edx
test eax, eax
mov dword [esi + 0x2c], ecx
je 0x4a686d
mov eax, 0xffffff84
pop esi
ret

Function at 0x4a6920
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
movsx eax, word [ebx + 0x9b4]
push edi
mov ecx, dword [ebx + eax*4 + 0x54]
test ecx, ecx
je 0x4a6972
cmp dword [esp + 0x1c], 1
jne 0x4a6969
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
mov ecx, ebx
call fcn.004a6a10
cmp eax, 0xffffffff
je 0x4a69ec
neg eax
sbb eax, eax
pop edi
and eax, 6
pop esi
pop ebp
add eax, 0xffffff7a
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
mov edi, dword [esp + 0x18]
xor esi, esi
test edi, edi
jle 0x4a699f
mov ebp, dword [esp + 0x14]
mov edx, dword [ebx + 0x20]
mov eax, edi
sub eax, esi
push 0
lea ecx, [esi + ebp]
push eax
push ecx
push edx
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x4a69a8
add esi, eax
cmp esi, edi
jl 0x4a6980
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4a69c3
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebp
mov eax, 0xffffff7f
pop ebx
ret 0xc
cmp dword [esp + 0x1c], 1
jne 0x4a69f8
sub edi, esi
add esi, ebp
push edi
push esi
mov ecx, ebx
call fcn.004a6a10
cmp eax, 0xffffffff
je 0x4a69ec
test eax, eax
jne 0x4a69f8
pop edi
pop esi
pop ebp
mov eax, 0xffffff7a
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xffffff7e
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xffffff80
pop ebx
ret 0xc
Function at 0x4a6ab0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
movsx eax, word [ebx + 0x9b4]
push edi
mov ebp, dword [ebx + eax*4 + 0x54]
test ebp, ebp
je 0x4a6bf4
mov edi, dword [ebx + eax*4 + 0x504]
xor esi, esi
test edi, edi
jle 0x4a6af5
mov edx, dword [ebx + 0x20]
mov eax, edi
sub eax, esi
push 0
lea ecx, [esi + ebp]
push eax
push ecx
push edx
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x4a6b69
add esi, eax
cmp esi, edi
jl 0x4a6ad6
mov edi, esi
movsx eax, word [ebx + 0x9b4]
cmp edi, dword [ebx + eax*4 + 0x504]
jne 0x4a6b82
mov eax, dword [ebx + eax*4 + 0x54]
push eax
call fcn.004a71c9
movsx edx, word [ebx + 0x9b4]
xor ecx, ecx
add esp, 4
mov dword [ebx + edx*4 + 0x54], ecx
movsx eax, word [ebx + 0x9b4]
mov dword [ebx + eax*4 + 0x504], ecx
inc word [ebx + 0x9b4]
movsx edx, word [ebx + 0x9b4]
cmp edx, dword [ebx + 0x9c0]
jl 0x4a6b4c
mov word [ebx + 0x9b4], cx
movsx eax, word [ebx + 0x9b4]
mov ebp, dword [ebx + eax*4 + 0x54]
cmp ebp, ecx
jne 0x4a6ac9
pop edi
pop esi
pop ebp
mov eax, 0xffffff78
pop ebx
ret
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4a6af5
mov dword [ebx + 4], eax
mov edi, 0xffffff7f
jmp 0x4a6af7
test edi, edi
jge 0x4a6b8d
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
movsx eax, word [ebx + 0x9b4]
mov ecx, dword [ebx + eax*4 + 0x504]
sub ecx, edi
push ecx
call fcn.004a71d4
mov ebp, eax
movsx eax, word [ebx + 0x9b4]
mov ecx, dword [ebx + eax*4 + 0x504]
mov esi, dword [ebx + eax*4 + 0x54]
sub ecx, edi
add esi, edi
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx eax, word [ebx + 0x9b4]
mov ecx, dword [ebx + eax*4 + 0x54]
push ecx
call fcn.004a71c9
movsx edx, word [ebx + 0x9b4]
add esp, 8
mov eax, 0xffffff79
mov dword [ebx + edx*4 + 0x54], ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffff78
pop ebx
ret
Function at 0x4a6c00
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebp
mov ebp, ecx
cmp edx, dword [ebp + 0x1c]
jbe 0x4a6c15
mov eax, 0xffffff7c
pop ebp
ret 0xc
cmp byte [ebp + 0x10], 2
je 0x4a6c24
mov eax, 0xffffff87
pop ebp
ret 0xc
mov eax, dword [ebp + 0x18]
push ebx
mov bl, byte [esp + 0x14]
lea ecx, [edx + 3]
mov byte [eax], bl
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [esp + 0x10]
mov word [eax + 1], cx
mov ecx, edx
push edi
mov edi, dword [ebp + 0x18]
mov eax, ecx
add edi, 3
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test bl, bl
rep movsb byte es:[edi], byte [esi]
je 0x4a6c7f
xor eax, eax
test edx, edx
jle 0x4a6c7f
mov ecx, dword [ebp + 0x18]
lea esi, [ecx + eax + 3]
mov cl, al
xor cl, bl
add byte [esi], cl
mov ecx, dword [ebp + 0x18]
lea esi, [ecx + eax + 3]
mov cl, dl
sub cl, al
xor cl, bl
xor byte [esi], cl
inc eax
cmp eax, edx
jl 0x4a6c5e
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x4a6c9a
add edx, 3
mov ecx, ebp
push edx
mov edx, dword [ebp + 0x18]
push edx
call fcn.004a6a10
jmp 0x4a6cab
mov eax, dword [ebp + 0x18]
add edx, 3
push 1
push edx
push eax
mov ecx, ebp
call fcn.004a6920
test eax, eax
jl 0x4a6cb2
add eax, 0xfffffffd
pop ebp
ret 0xc

Function at 0x4a6cc0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x14]
mov dl, byte [eax]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a6cd3
mov byte [eax], dl
mov eax, dword [esi + 0x14]
mov edi, dword [esp + 0xc]
inc eax
xor ecx, ecx
mov cx, word [eax]
sub ecx, 3
mov dword [edi], ecx
xor ecx, ecx
mov cx, word [eax]
sub ecx, 3
test dl, dl
je 0x4a6d1a
xor eax, eax
test ecx, ecx
jle 0x4a6d1a
push ebx
mov edi, dword [esi + 0x14]
mov bl, cl
sub bl, al
lea edi, [eax + edi + 3]
xor bl, dl
xor byte [edi], bl
mov edi, dword [esi + 0x14]
mov bl, al
lea edi, [eax + edi + 3]
xor bl, dl
sub byte [edi], bl
inc eax
cmp eax, ecx
jl 0x4a6cf8
pop ebx
mov eax, dword [esi + 0x14]
pop edi
add eax, 3
pop esi
ret 8

Function at 0x4a6d30
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
test ebp, ebp
push edi
mov ebx, ecx
mov esi, ebp
jle 0x4a6d5f
mov edi, dword [esp + 0x14]
mov eax, dword [ebx + 0x20]
push 0
push esi
push edi
push eax
call sub.ws2_32.dll_send
test eax, eax
jl 0x4a6d63
je 0x4a6d5f
sub esi, eax
add edi, eax
test esi, esi
jg 0x4a6d44
mov eax, ebp
sub eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4a6dd0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x3c
push ebp
push esi
lea esi, [ecx + 4]
push 0
push esi
push 0
call sub.dsound.dll_DirectSoundCreate
test eax, eax
je 0x4a6dfb
push 0x4c7d70
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop esi
xor al, al
pop ebp
add esp, 0x3c
ret 4
mov eax, dword [esi]
mov ebp, dword [esp + 0x48]
push 2
push ebp
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
je 0x4a6e23
push 0x4c7d70
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop esi
xor al, al
pop ebp
add esp, 0x3c
ret 4
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x24]
xor edx, edx
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov dword [esp + 0x10], edx
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ecx
push ecx
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], edx
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x24
mov dword [esp + 0x30], 1
mov word [esp + 0x28], dx
mov word [esp + 0x18], 1
mov word [esp + 0x1a], 2
mov dword [esp + 0x1c], 0xac44
mov word [esp + 0x26], 0x10
mov word [esp + 0x24], 4
mov dword [esp + 0x20], 0x2b110
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
test eax, eax
pop edi
je 0x4a6eb0
pop esi
xor al, al
pop ebp
add esp, 0x3c
ret 4
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x38]
mov esi, dword [esi]
push 1
push ebp
push esi
mov edx, dword [esi]
call dword [edx + 0x18]
test eax, eax
je 0x4a6ee3
push 0x4c7d70
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop esi
xor al, al
pop ebp
add esp, 0x3c
ret 4
pop esi
mov al, 1
pop ebp
add esp, 0x3c
ret 4
Function at 0x4ac707
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c86b0
cmp edx, dword [eax]
je 0x4ac729
add eax, 8
inc ecx
cmp eax, 0x4c8740
jl 0x4ac71a
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c86b0]
jne 0x4ac857
mov eax, dword [0x575910]
cmp eax, 1
je 0x4ac831
test eax, eax
jne 0x4ac75a
cmp dword [0x4c7dd4], 1
je 0x4ac831
cmp edx, 0xfc
je 0x4ac857
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ac791
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004aa650
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004adb80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ac7d4
lea eax, [ebp - 0x1a4]
push eax
call fcn.004adb80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4b79a4
push edi
call fcn.004a8790
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004aa650
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004aa660
lea eax, [ebp - 0xa0]
push 0x4b7984
push eax
call fcn.004aa660
push dword [esi + 0x4c86b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004aa660
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004af01d
add esp, 0x2c
pop edi
jmp 0x4ac857
lea eax, [ebp + 8]
lea esi, [esi + 0x4c86b4]
push 0
push eax
push dword [esi]
call fcn.004adb80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4b3180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b31a0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.004abb24
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b31c3
test byte [esp + 8], 2
je 0x4b31c3
call fcn.004abb97
mov dword [eax], 0xd
call fcn.004abba0
mov dword [eax], 5
jmp 0x4b319c
xor eax, eax
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x6d962747
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x674c7313
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x1005a3dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1005a3ec
pop dword [ebp - 8]
mov eax, 0x9acf009e
add eax, 0x7536a34e
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x2a3dea6d
sub dword [ebp - 0x18], 0xdbeba522
mov dword [ebp - 0x14], 0xdf34a3c7
add dword [ebp - 0x14], 0x52fea87e
mov dword [ebp - 0x10], 0x4905106a
sub dword [ebp - 0x10], 0xfcb8cc3c
mov dword [ebp - 0xc], 0xffdba4fe
add dword [ebp - 0xc], 0x245b02
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x88ff7638
sub dword [ebp - 0x18], 0x148d0ce2
mov dword [ebp - 0x14], 0xd7a96e90
sub dword [ebp - 0x14], 0x963d0d1b
mov dword [ebp - 0x10], 0x86aa8d80
add dword [ebp - 0x10], 0xdcc4deec
mov dword [ebp - 0xc], 0x6c885714
add dword [ebp - 0xc], 0x9377a8ec
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3b44e
push 0
call eax
mov ecx, 0xfb93eed2
add ecx, 0x46c50bb
xor edi, edi
add edi, eax
mov esi, 0xb49b4299
sub esi, 0xa48fb299
add esi, dword [ebp - 8]
mov ebx, 0xe9d6326
add ebx, 0xf23abd29
xor dword [ebp - 4], ecx
mov edx, dword [esi]
add dword [ebp - 4], ebx
add edx, ebx
add dword [ebp - 4], esi
mov dword [edi], edx
add edi, 4
add esi, 4
loop 0x1005a506
add eax, 0x2b0d0b7e
add eax, 0xd4f3e589
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x477cb8ba
sub ecx, 0x377cb8ba
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x7f105217
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4949651b
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4017a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0xb8], edx
push esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.DEVOBJ.dll_DevObjCreateDeviceInfoList]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4017e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4017eb
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x401980
push 0
push 0
push 4
push edi
push 0
push ebx
call dword [sym.imp.DEVOBJ.dll_DevObjGetClassDevs]
test eax, eax
je 0x401809
xor edi, edi
jmp 0x401810
call fcn.0040167e
mov edi, eax
xor eax, eax
jmp 0x401966
and dword [ebp - 0xa0], 0
lea ecx, [ebp - 0xa4]
and dword [ebp - 0x9c], 0
and dword [ebp - 0x98], 0
and dword [ebp - 0x94], 0
and dword [ebp - 0x90], 0
and dword [ebp - 0x8c], 0
and dword [ebp - 0x88], 0
and dword [ebp - 0x84], 0
push ecx
push eax
push ebx
mov dword [ebp - 0xa4], 0x24
call dword [sym.imp.DEVOBJ.dll_DevObjEnumDeviceInfo]
test eax, eax
jne 0x40187b
call fcn.0040167e
mov edi, eax
test edi, edi
js 0x40195f
push 0x20019
push 1
push 0
push 1
lea eax, [ebp - 0xa4]
push eax
push ebx
call dword [sym.imp.DEVOBJ.dll_DevObjOpenDevRegKey]
mov esi, eax
mov dword [ebp - 0xb4], esi
cmp esi, 0xffffffff
jne 0x4018b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x4018bc
movzx edi, di
or edi, 0x80070000
jmp 0x4018ba
xor edi, edi
test edi, edi
js 0x40195f
and dword [ebp - 0xa8], 0
lea eax, [ebp - 0x80]
push 0x7c
pop edi
push edi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0xb0], edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0xa8]
push eax
push 0
push 0x4011f8
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jle 0x401910
movzx esi, si
or esi, 0x80070000
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esi + 0x1ffffdf5]
neg edi
sbb edi, edi
and edi, esi
mov eax, edi
jl 0x40195f
cmp dword [ebp - 0xa8], 1
jne 0x40195f
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x80]
push eax
push 0xffffffffffffffff
push dword [ebp - 0xb8]
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x40195f
lea edx, [ebp - 0xa4]
mov ecx, ebx
call fcn.0040169a
mov edi, eax
mov eax, dword [ebp - 0xac]
inc eax
mov dword [ebp - 0xac], eax
test edi, edi
jns 0x401817
lea esi, [edi + 0x7ff8fefd]
neg esi
sbb esi, esi
and esi, edi
cmp ebx, 0xffffffff
je 0x40198c
push ebx
call dword [sym.imp.DEVOBJ.dll_DevObjDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401cd0
leave
ret
Function at 0x401c90
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x402290
call fcn.00402008
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x403370
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x401ab8
cmp eax, esi
jne 0x401aab
xor esi, esi
inc esi
mov edi, esi
jmp 0x401abb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401a8f
xor esi, esi
inc esi
cmp dword [0x403374], esi
jne 0x401acd
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401b07
cmp dword [0x403374], ebx
jne 0x401b01
mov dword [0x403374], esi
push 0x4010cc
push 0x4010c0
call fcn.00401bec
pop ecx
pop ecx
test eax, eax
je 0x401b07
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401bdc
mov dword [0x403014], esi
cmp dword [0x403374], esi
jne 0x401b2a
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x403374], 2
test edi, edi
jne 0x401b37
xor eax, eax
mov ecx, 0x403370
xchg dword [ecx], eax
cmp dword [0x403378], 0
je 0x401b63
push 0x403378
call fcn.00401e60
pop ecx
test eax, eax
je 0x401b63
push ebx
push 2
push ebx
mov esi, dword [0x403378]
mov ecx, esi
call dword [0x4040bc]
call esi
push dword [0x403020]
push dword [0x40301c]
push dword [0x403018]
call fcn.0040159b
add esp, 0xc
mov dword [0x403010], eax
cmp dword [0x403028], 0
jne 0x401bc1
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x403014], 0
jne 0x401bd5
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x403010]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00401f55
jmp 0x401a73

Function at 0x401d44
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4022b0
call fcn.00402008
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401da4
cmp eax, 0xffffffff
je 0x401da4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401d9d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401d9d
cmp edx, 0x10000000
jae 0x401d9d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x401d9a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401e10
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x401e4e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x401e46
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x401e50
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x401e36
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401f20
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x401f51
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401f51
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x401f51
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4117eb
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
bswap eax
mov edi, eax
mov eax, dword [esi + 4]
bswap eax
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp + 8], eax
mov eax, dword [ebx + esi*4]
bswap eax
mov dword [ebp + esi*4 - 0x10], eax
inc esi
cmp esi, 4
jl 0x41180a
mov ebx, dword [ebp + 8]
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x411826
bswap edi
mov esi, dword [ebp + 0x10]
mov dword [esi], edi
bswap ebx
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4118fa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
test esi, esi
jne 0x41191f
xor eax, eax
jmp 0x411924
mov eax, dword [esi + 4]
add eax, eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x4276f0
call fcn.00424a5a
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41195a
push ebx
call fcn.00424a42
add esp, 4
pop eax
mov dword [ebp - 4], eax
test esi, esi
je 0x411967
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4119bc
lea edx, [esi + 8]
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x42413938
mov dword [ebp - 8], 0x46454443
test edx, edx
je 0x4119bc
test eax, eax
je 0x4119bc
lea esi, [edx + ecx]
cmp edx, esi
jae 0x4119bc
nop
movzx ecx, byte [edx]
shr ecx, 4
inc edx
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax], cl
movzx ecx, byte [edx - 1]
and ecx, 0xf
lea eax, [eax + 2]
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax - 1], cl
cmp edx, esi
jb 0x411998
pop esi
mov eax, dword [ebp - 4]
leave
ret 4