joyce8/EMBER2024-capa huggingface dataset:
Function at 0xcf4a00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [eax], 0
mov edi, edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
test esi, esi
jne 0xcf4a2e
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0xcf4a25
sub esi, ecx
cmp esi, 0x3fffffff
ja 0xcf4b52
lea ecx, [esi + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea eax, [edx*4 + 1]
push eax
call dword [0xd93dd4]
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
test ecx, ecx
je 0xcf4b52
push ebx
cmp esi, 3
jb 0xcf4adc
mov eax, 0xaaaaaaab
mul esi
mov ebx, edx
shr ebx, 1
movzx eax, byte [edi]
sub esi, 3
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
and edx, 3
shr eax, 4
shl edx, 4
or edx, eax
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx edx, byte [edi + 1]
movzx eax, byte [edi + 2]
and edx, 0xf
shr eax, 6
shl edx, 2
or edx, eax
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
movzx eax, byte [edi + 2]
add edi, 3
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], al
add ecx, 4
sub ebx, 1
jne 0xcf4a75
test esi, esi
je 0xcf4b39
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx edx, byte [edi]
and edx, 3
shl edx, 4
cmp esi, 1
jne 0xcf4b0d
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
mov word [ecx + 2], 0x3d3d
jmp 0xcf4b36
movzx eax, byte [edi + 1]
shr eax, 4
or eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [edi + 1]
and eax, 0xf
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
add ecx, 4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov byte [ecx], 0
sub ecx, eax
pop ebx
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
xor eax, eax
pop ebp
ret
pop edi
mov eax, 0x1b
pop esi
pop ebp
ret
Function at 0xd05540
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0xd93040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov edi, edx
push eax
mov esi, ecx
call fcn.00cee8a0
add esp, 4
mov ecx, esi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x18], xmm0
call fcn.00cefc50
mov ecx, edi
mov ebx, eax
call fcn.00cefc50
push 1
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0xd055d7
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
push eax
call fcn.00cee8a0
movups xmm0, xmmword [ebp - 0x18]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.00cee950
add esp, 0x20
test edx, edx
ja 0xd05604
jb 0xd055c5
cmp eax, 0x3e8
ja 0xd05604
push 1
call edi
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0xd05590
test ebx, ebx
je 0xd055e4
push ebx
call fcn.00d2d9c1
add esp, 4
test esi, esi
je 0xd055f1
push esi
call fcn.00d2d9c1
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d27f4f
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0xd05611
push ebx
call fcn.00d2d9c1
add esp, 4
test esi, esi
je 0xd0561e
push esi
call fcn.00d2d9c1
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00d27f4f
mov esp, ebp
pop ebp
ret

Function at 0xd12420
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
lea eax, [edx - 0xc8]
push edi
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0xd1244e
push str.Couldnt_set_desired_mode
push esi
call fcn.00ceddf0
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp edx, 0xc8
je 0xd12465
push edx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.00cedeb0
add esp, 0xc
mov al, byte [ebp + 8]
cmp al, 0x13
jne 0xd1247c
mov edx, ebx
mov ecx, esi
call fcn.00d11400
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x14
jne 0xd1248e
mov ecx, esi
call fcn.00d11450
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x15
jne 0xd124a0
mov ecx, esi
call fcn.00d11560
mov edi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp al, 0x16
jne 0xd124ad
mov ecx, esi
call fcn.00d11570
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0xd1b400
Capabilities:
Create thread

Disassembly:
push 0
push 0
push edx
push 0xcee270
push 0
push 0
call fcn.00d3f893
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0xd1b424
cmp ecx, 0xffffffff
cmovne eax, ecx
ret
Function at 0xd258f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xd93040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push esi
push edi
push 0xf0000040
push 1
push 0
push 0
push eax
mov esi, edx
mov dword [ebp - 0x20], 8
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xd2597d
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0x208
lea edx, [ebp - 0xc]
movlpd qword [ebp - 0xc], xmm0
mov ecx, ebx
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.00d25860
mov ecx, edx
call fcn.00d26e30
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0xd25990
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d27f4f
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi + 4], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00d27f4f
mov esp, ebp
pop ebp
ret

Function at 0xd25bc0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xd25bff
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0xd25c07
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x1b
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0xd25fc0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xd25ff2
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret
Function at 0xd260b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
mov dword [ebp - 0xc], ebx
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
lea eax, [eax + esi*2]
add eax, 0xc
push eax
call dword [0xd93dd4]
mov esi, eax
add esp, 4
test esi, esi
jne 0xd260e2
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
push edi
lea edi, [ebx + 4]
cmp eax, dword [ebx + 0x10]
jbe 0xd2612b
mov eax, dword [ebx]
push ecx
call eax
push dword [ebp + 8]
mov eax, dword [edi]
push dword [ebp - 8]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebx + 0xc]
push dword [esi + 4]
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebx + 8]
call eax
mov eax, dword [ebx + 0x14]
add esp, 0x18
mov dword [ebp + 8], eax
push dword [esi + 4]
mov eax, dword [ebx]
call eax
push dword [esi + 8]
mov eax, dword [ebx]
call eax
mov eax, dword [ebp + 8]
add esp, 8
xor ebx, ebx
test eax, eax
je 0xd26191
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x10], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub dword [ebp + 8], 1
jne 0xd26150
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
lea edi, [eax + 4]
jmp 0xd26194
mov eax, dword [ebp - 0xc]
cmp ebx, dword [eax + 0x10]
jae 0xd261c8
nop dword [eax]
mov eax, dword [edi]
push 1
push 0xd5a0d4
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0xd5a0d3
push dword [esi + 8]
call eax
mov eax, dword [ebp - 0xc]
inc ebx
add esp, 0x18
cmp ebx, dword [eax + 0x10]
jb 0xd261a0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xd26d30
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push esi
push edi
push 0xf0000040
mov esi, ecx
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xd26d6b
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
ret

Function at 0xd28b0c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0xd28b4b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xd28b4b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xd28b4b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xd28b4b
cmp dword [ecx + 0x74], 0xe
jbe 0xd28b4b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0xd44d98
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00d44a58

Function at 0xd48f72
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00d48df1
Function at 0xd4db50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xd4db7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xd4db7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x10]
jae 0x40136e
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], edx
jmp 0x401374
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jbe 0x4013bc
mov edx, dword [ebp - 0x1c]
add edx, 8
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4013bc
mov edx, dword [ebp - 0x1c]
add edx, 8
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00401440
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x4013d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40141f
mov eax, dword [ebp - 0xc]
add eax, 0x1c
push eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
call fcn.00401440
cmp eax, 0xffffffff
jne 0x40141f
or eax, 0xffffffff
jmp 0x401430
cmp dword [ebp + 0x10], 0
je 0x40142d
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402050
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x466cab
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x485ba0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov dword [eax], vtable.CComport.0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 4], 1
jne 0x402099
mov ecx, dword [ebp - 0x1c]
call fcn.00402350
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0
je 0x40210c
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], 0
push 0x7d0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4020dc
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x402105
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x20], eax
jmp 0x40210c
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
add ecx, 0x18
call fcn.004027e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x402190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x485ba0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 4], 0
jne 0x4021b3
xor eax, eax
jmp 0x40229b
mov dword [ebp - 0x38], 0
jmp 0x4021c5
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp + 0xc]
jge 0x4021cf
jmp 0x4021bc
mov ecx, dword [ebp - 0x3c]
add ecx, 0x5c
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x402286
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40226a
push 1
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x3c]
add edx, 0x5c
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x402268
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3e4
je 0x402266
mov edx, dword [ebp - 0x28]
push edx
push str._CE__u_
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
jmp 0x402268
jmp 0x402209
jmp 0x402284
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
or eax, 0xffffffff
jmp 0x40229b
jmp 0x40228b
or eax, 0xffffffff
jmp 0x40229b
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0044ab88
mov esp, ebp
pop ebp
ret 8

Function at 0x4022b0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 1
jne 0x4022ca
mov ecx, dword [ebp - 0x10]
call fcn.00402350
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x14], 0
je 0x40233d
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
push 0x7d0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40230d
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x402336
push 1
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x14], eax
jmp 0x40233d
mov dword [ebp - 0x14], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4032c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x4000
mov edx, 0x8000
sub edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jbe 0x403303
mov eax, 0x8000
sub eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call fcn.0045d00d
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40332b
mov dword [ebp - 8], 0
jmp 0x40334c
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 0
je 0x40334c
cmp dword [ebp - 8], 0x8000
jb 0x4032e4
mov ecx, dword [ebp - 8]
push ecx
call fcn.00403270
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x405ad0
Capabilities:
Hash data with md5

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

Function at 0x409850
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jae 0x40989e
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40989c
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x409870
jmp 0x409862
mov esp, ebp
pop ebp
ret 4
Function at 0x40cd30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x485ba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], ecx
push 0x11c
push 0
lea eax, [ebp - 0x128]
push eax
call fcn.0044da90
add esp, 0xc
mov dword [ebp - 0x128], 0x11c
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40cd9c
mov dword [ebp - 0x128], 0x114
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40cd9c
mov eax, 0x33
jmp 0x40cddc
cmp dword [ebp - 0x118], 2
jne 0x40cdd7
cmp dword [ebp - 0x124], 6
jne 0x40cdbe
cmp dword [ebp - 0x120], 0
jne 0x40cdbe
mov eax, 0x3c
jmp 0x40cddc
cmp dword [ebp - 0x124], 6
jne 0x40cdd7
cmp dword [ebp - 0x120], 1
jne 0x40cdd7
mov eax, 0x3d
jmp 0x40cddc
mov eax, 0x33
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ab88
mov esp, ebp
pop ebp
ret
Function at 0x40cf20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareSAMSUNGMULTILOADER
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d07d
mov dword [ebp - 4], 4
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x298
push eax
push 3
push 0
push str.REG_LED_CONTROL_PORT_NUM
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x278
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x27c
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM2
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x280
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM3
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x284
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x288
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM5
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x28c
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM6
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x290
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM7
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x294
push eax
push 3
push 0
push str.REG_MODEM_PORT_NUM8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret