joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ade0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
mov bx, word [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
cmp bx, 4
mov word [esi], 0
jbe 0x41ae03
pop esi
xor al, al
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.0041aad0
lea ecx, [esp + 0x38]
push 0x10
push ecx
call fcn.0041ab20
lea edx, [esp + 0x18]
push 0x10
push edx
call fcn.0041abc0
lea eax, [esp + 0x18]
push eax
call fcn.00405d20
cmp ax, 0x10
jae 0x41ae43
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 0x18], bl
lea ecx, [esp + 0x28]
lea edx, [esp + 8]
push ecx
push 0x10
push edx
lea eax, [esp + 0x24]
push 0x464ea8
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x41aeba
lea edx, [esp + 8]
push 0x2c
push edx
call fcn.0041adb0
cmp ax, 0x10
jae 0x41ae84
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x41aea6
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x41aea6
lea ecx, [esp + 0xa]
push esi
push ecx
call fcn.00405e30
test al, al
jne 0x41aeba
jmp 0x41aeb5
lea edx, [esp + 8]
push esi
push edx
call fcn.00405d90
test al, al
jne 0x41aeba
mov word [esi], 0
mov ax, word [esi]
test ax, ax
je 0x41aed5
cmp ax, 0xffff
je 0x41aed5
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret 8
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret 8

Function at 0x41aee0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x44
push ebx
mov bx, word [esp + 0x4c]
push esi
mov esi, dword [esp + 0x54]
cmp bx, 4
mov word [esi], 0
jbe 0x41af03
pop esi
xor al, al
pop ebx
add esp, 0x44
ret 8
lea eax, [esp + 0x18]
push 0x10
push eax
call fcn.0041aad0
lea ecx, [esp + 0x28]
push 0x10
push ecx
call fcn.0041ab20
lea edx, [esp + 8]
push 0x10
push edx
call fcn.0041abc0
lea eax, [esp + 8]
push eax
call fcn.00405d20
cmp ax, 0x10
jae 0x41af43
add bl, 0x31
and eax, 0xffff
mov byte [esp + eax + 8], bl
lea ecx, [esp + 0x18]
lea edx, [esp + 0x38]
push ecx
push 0x14
push edx
lea eax, [esp + 0x14]
push 0x464ea8
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x41afb5
lea edx, [esp + 0x38]
push 0x2c
push edx
call fcn.0041adb0
cmp ax, 0x10
jae 0x41afb5
and eax, 0xffff
mov cl, byte [esp + eax + 0x39]
and cl, 0xdf
cmp cl, 0x54
jne 0x41afb5
cmp byte [esp + eax + 0x3a], 0x3a
jne 0x41afb5
lea edx, [esp + eax + 0x3b]
push esi
push edx
call fcn.00405d90
test al, al
je 0x41afb0
mov ax, word [esi]
cmp ax, 1
jl 0x41afb0
cmp ax, 7
jle 0x41afb5
mov word [esi], 0
xor eax, eax
cmp word [esi], ax
pop esi
pop ebx
setne al
add esp, 0x44
ret 8
Function at 0x41afd0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
lea eax, [esp]
push esi
push 0x10
push eax
call fcn.0041aad0
lea ecx, [esp + 0x24]
push 0x10
push ecx
call fcn.0041ab20
lea edx, [esp + 0x14]
push 0x10
push edx
call fcn.0041ac80
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.0041ac40
lea ecx, [esp + 4]
lea edx, [esp + 0x34]
push ecx
push 0x10
push edx
lea eax, [esp + 0x20]
push 0x464ea8
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
je 0x41b040
lea edx, [esp + 0x34]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.00405bd0
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
xor eax, eax
test esi, esi
setne al
pop esi
add esp, 0x50
ret 8

Function at 0x41b050
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp]
push 0x10
push eax
call fcn.0041aad0
lea ecx, [esp + 0x20]
push 0x10
push ecx
call fcn.0041ab20
lea edx, [esp + 0x10]
push 0x10
push edx
call fcn.0041ac00
lea eax, [esp]
lea ecx, [esp + 0x10]
push eax
push 0
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor edx, edx
mov ecx, dword [esp + 0x34]
test eax, eax
setne dl
mov word [ecx], ax
mov al, dl
add esp, 0x30
ret 4

Function at 0x41b0b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
push 0
push eax
mov word [esi], 0
call fcn.00405d40
lea ecx, [esp + 0x14]
push 0x10
push ecx
call fcn.0041aad0
lea edx, [esp + 0x34]
push 0x10
push edx
call fcn.0041ab20
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.0041ab70
lea ecx, [esp + 0x44]
push 0x10
push ecx
call fcn.0041acd0
lea edx, [esp + 0x54]
push 0x10
push edx
call fcn.0041ad60
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.0041ad20
lea ecx, [esp + 0x14]
lea edx, [esp + 4]
push ecx
push 0x10
push edx
lea eax, [esp + 0x30]
push 0x464ea8
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x41b19e
lea edx, [esp + 0x44]
lea eax, [esp + 4]
push edx
push eax
call fcn.00405bd0
test al, al
je 0x41b15f
xor eax, eax
mov word [esi], 2
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea ecx, [esp + 0x54]
lea edx, [esp + 4]
push ecx
push edx
call fcn.00405bd0
test al, al
je 0x41b186
xor eax, eax
mov word [esi], 3
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea eax, [esp + 0x64]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00405bd0
test al, al
je 0x41b19e
mov word [esi], 1
xor eax, eax
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4

Function at 0x41b1b0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x41bd40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x140
push esi
mov esi, dword [esp + 0x154]
cmp esi, 0x40
jle 0x41bd96
lea eax, [esp + 0xec]
push eax
call fcn.0041b1b0
mov ecx, dword [esp + 0x154]
push esi
lea edx, [esp + 0xf4]
push ecx
push edx
call fcn.0041b1e0
lea eax, [esp + 0xfc]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0041b290
add esp, 0x18
lea edx, [esp + 4]
mov esi, 0x10
jmp 0x41bd9d
mov edx, dword [esp + 0x150]
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x18]
test esi, esi
rep stosd dword es:[edi], eax
jle 0x41bdda
mov edi, edx
lea edx, [esp + 0x18]
sub edi, edx
lea ecx, [esp + eax + 0x18]
inc eax
cmp eax, esi
mov dl, byte [edi + ecx]
mov byte [esp + eax + 0xaf], dl
mov byte [ecx], dl
jl 0x41bdc5
xor eax, eax
pop edi
mov dl, byte [esp + eax + 0xac]
mov cl, byte [esp + eax + 0x14]
xor dl, 0x36
xor cl, 0x5c
mov byte [esp + eax + 0xac], dl
mov byte [esp + eax + 0x14], cl
inc eax
cmp eax, 0x40
jl 0x41bddd
lea eax, [esp + 0x54]
push eax
call fcn.0041b1b0
lea ecx, [esp + 0xb0]
push 0x40
lea edx, [esp + 0x5c]
push ecx
push edx
call fcn.0041b1e0
mov eax, dword [esp + 0x15c]
mov ecx, dword [esp + 0x158]
push eax
lea edx, [esp + 0x68]
push ecx
push edx
call fcn.0041b1e0
mov esi, dword [esp + 0x174]
lea eax, [esp + 0x70]
push eax
push esi
call fcn.0041b290
lea ecx, [esp + 0x78]
push ecx
call fcn.0041b1b0
lea edx, [esp + 0x3c]
push 0x40
lea eax, [esp + 0x80]
push edx
push eax
call fcn.0041b1e0
push 0x10
lea ecx, [esp + 0x8c]
push esi
push ecx
call fcn.0041b1e0
add esp, 0x40
lea edx, [esp + 0x54]
push edx
push esi
call fcn.0041b290
add esp, 8
pop esi
add esp, 0x140
ret

Function at 0x41c000
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
lea ecx, [esp]
push esi
push eax
push ecx
call fcn.0041bfc0
push 0
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x18]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x18]
mov dword [esi], eax
jne 0x41c06f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x41c056
cmp eax, 3
ja 0x41c056
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41c064
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8
Function at 0x41c080
Capabilities:
Check if file exists
Check os version

Disassembly:
sub esp, 0xa8
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 2
jne 0x41c112
cmp dword [esp + 0x18], 5
jne 0x41c112
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x41c112
mov al, 0x5c
mov cl, 0x6c
mov byte [esp], al
mov byte [esp + 1], al
mov byte [esp + 3], al
mov byte [esp + 0xa], al
mov dl, 0x62
mov al, 0x6e
mov byte [esp + 2], 0x2e
mov byte [esp + 4], 0x47
mov byte [esp + 5], cl
mov byte [esp + 6], 0x6f
mov byte [esp + 7], dl
mov byte [esp + 8], 0x61
mov byte [esp + 9], cl
mov byte [esp + 0xb], 0x53
mov byte [esp + 0xc], al
mov byte [esp + 0xd], 0x74
mov byte [esp + 0xe], al
mov byte [esp + 0xf], cl
mov byte [esp + 0x10], 0x55
mov byte [esp + 0x11], 0x73
mov byte [esp + 0x12], dl
mov byte [esp + 0x13], 0
jmp 0x41c152
mov al, 0x5c
mov byte [esp + 2], 0x2e
mov byte [esp], al
mov byte [esp + 1], al
mov byte [esp + 3], al
mov al, 0x6e
mov byte [esp + 4], 0x53
mov byte [esp + 5], al
mov byte [esp + 6], 0x74
mov byte [esp + 7], al
mov byte [esp + 8], 0x6c
mov byte [esp + 9], 0x55
mov byte [esp + 0xa], 0x73
mov byte [esp + 0xb], 0x62
mov byte [esp + 0xc], 0
push esi
push 0
push 0x80
push 3
push 0
push 3
lea ecx, [esp + 0x18]
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0xb0]
mov dword [esi], eax
jne 0x41c1b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x41c19c
cmp eax, 3
ja 0x41c19c
mov ax, 0x20c
pop esi
add esp, 0xa8
ret 8
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x41c1aa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0xa8
ret 8
mov ax, 0x200
pop esi
add esp, 0xa8
ret 8
Function at 0x42f2a0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov dword [eax + 0xc], ecx
mov dword [ebp - 0x18], 0
jmp 0x42f304
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0xa
jge 0x42f3bb
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 3]
and ecx, 0xff
xor edx, edx
mov dl, byte [ecx + str.cw]
mov eax, dword [ebp - 0x18]
xor edx, dword [eax*4 + 0x46310c]
mov cl, byte [ebp - 0x10]
xor cl, dl
mov byte [ebp - 0x10], cl
mov edx, dword [ebp - 2]
and edx, 0xff
mov al, byte [ebp - 0xf]
xor al, byte [edx + str.cw]
mov byte [ebp - 0xf], al
mov ecx, dword [ebp - 1]
and ecx, 0xff
mov dl, byte [ebp - 0xe]
xor dl, byte [ecx + str.cw]
mov byte [ebp - 0xe], dl
mov eax, dword [ebp - 4]
and eax, 0xff
mov cl, byte [ebp - 0xd]
xor cl, byte [eax + str.cw]
mov byte [ebp - 0xd], cl
mov edx, dword [ebp - 0xc]
xor edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov dword [edx + 0xc], eax
jmp 0x42f2fb
mov esp, ebp
pop ebp
ret
Function at 0x42f5f5
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp + 8]
mov al, byte [ecx + str.cw]
mov byte [edx], al
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 4]
mov eax, dword [ebp + 8]
mov cl, byte [edx + str.cw]
mov byte [eax + 4], cl
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 8]
mov ecx, dword [ebp + 8]
mov dl, byte [eax + str.cw]
mov byte [ecx + 8], dl
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0xc]
mov edx, dword [ebp + 8]
mov al, byte [ecx + str.cw]
mov byte [edx + 0xc], al
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 1]
mov eax, dword [ebp + 8]
mov cl, byte [edx + str.cw]
mov byte [eax + 0xd], cl
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 5]
mov ecx, dword [ebp + 8]
mov dl, byte [eax + str.cw]
mov byte [ecx + 1], dl
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 9]
mov edx, dword [ebp + 8]
mov al, byte [ecx + str.cw]
mov byte [edx + 5], al
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 0xd]
mov eax, dword [ebp + 8]
mov cl, byte [edx + str.cw]
mov byte [eax + 9], cl
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 2]
mov ecx, dword [ebp + 8]
mov dl, byte [eax + str.cw]
mov byte [ecx + 0xa], dl
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0xa]
mov edx, dword [ebp + 8]
mov al, byte [ecx + str.cw]
mov byte [edx + 2], al
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 6]
mov eax, dword [ebp + 8]
mov cl, byte [edx + str.cw]
mov byte [eax + 0xe], cl
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 0xe]
mov ecx, dword [ebp + 8]
mov dl, byte [eax + str.cw]
mov byte [ecx + 6], dl
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 3]
mov edx, dword [ebp + 8]
mov al, byte [ecx + str.cw]
mov byte [edx + 7], al
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 0xf]
mov eax, dword [ebp + 8]
mov cl, byte [edx + str.cw]
mov byte [eax + 3], cl
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 0xb]
mov ecx, dword [ebp + 8]
mov dl, byte [eax + str.cw]
mov byte [ecx + 0xf], dl
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 7]
mov edx, dword [ebp + 8]
mov al, byte [ecx + str.cw]
mov byte [edx + 0xb], al
pop ebp
ret
Function at 0x42fd30
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp + 8]
mov al, byte [ecx + 0x462c0c]
mov byte [edx], al
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 4]
mov eax, dword [ebp + 8]
mov cl, byte [edx + 0x462c0c]
mov byte [eax + 4], cl
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 8]
mov ecx, dword [ebp + 8]
mov dl, byte [eax + 0x462c0c]
mov byte [ecx + 8], dl
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0xc]
mov edx, dword [ebp + 8]
mov al, byte [ecx + 0x462c0c]
mov byte [edx + 0xc], al
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 1]
mov eax, dword [ebp + 8]
mov cl, byte [edx + 0x462c0c]
mov byte [eax + 5], cl
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 0xd]
mov ecx, dword [ebp + 8]
mov dl, byte [eax + 0x462c0c]
mov byte [ecx + 1], dl
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 9]
mov edx, dword [ebp + 8]
mov al, byte [ecx + 0x462c0c]
mov byte [edx + 0xd], al
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 5]
mov eax, dword [ebp + 8]
mov cl, byte [edx + 0x462c0c]
mov byte [eax + 9], cl
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 2]
mov ecx, dword [ebp + 8]
mov dl, byte [eax + 0x462c0c]
mov byte [ecx + 0xa], dl
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0xa]
mov edx, dword [ebp + 8]
mov al, byte [ecx + 0x462c0c]
mov byte [edx + 2], al
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 6]
mov eax, dword [ebp + 8]
mov cl, byte [edx + 0x462c0c]
mov byte [eax + 0xe], cl
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 0xe]
mov ecx, dword [ebp + 8]
mov dl, byte [eax + 0x462c0c]
mov byte [ecx + 6], dl
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 3]
mov edx, dword [ebp + 8]
mov al, byte [ecx + 0x462c0c]
mov byte [edx + 0xf], al
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + 7]
mov eax, dword [ebp + 8]
mov cl, byte [edx + 0x462c0c]
mov byte [eax + 3], cl
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + 0xb]
mov ecx, dword [ebp + 8]
mov dl, byte [eax + 0x462c0c]
mov byte [ecx + 7], dl
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + 0xf]
mov edx, dword [ebp + 8]
mov al, byte [ecx + 0x462c0c]
mov byte [edx + 0xb], al
pop ebp
ret
Function at 0x4339d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x463140]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x400
mov esi, eax
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00436ac0
add esp, 0xc
lea eax, [ebp - 0x408]
push 0
push 0
push eax
push 0x400
push esi
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
lea eax, [ebp - 0x404]
je 0x433a50
push dword [ebp - 0x408]
push esi
push esi
push edi
push str.Y:VirtualUSBSniffer.cpp
push str.File:__s__Line__d_r_nGetLastError_0x_x__u__s_n
push 0x400
push eax
call fcn.00433950
add esp, 0x20
jmp 0x433a6b
push esi
push esi
push edi
push str.Y:VirtualUSBSniffer.cpp
push str.File:__s__Line__d_r_nGetLastError_0x_x__u_r_n
push 0x400
push eax
call fcn.00433950
add esp, 0x1c
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004346eb
mov esp, ebp
pop ebp
ret

Function at 0x435503
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x435542
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x435542
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x435542
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x435542
cmp dword [ecx + 0x74], 0xe
jbe 0x435542
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x448531
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x466250]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x448571
cmp byte [ebx], 0xa
jne 0x448571
or byte [edi + eax + 0x28], 4
jmp 0x448576
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x448675
mov dl, byte [eax]
cmp dl, 0x1a
je 0x448658
inc eax
cmp dl, 0xd
je 0x4485a2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4485c8
cmp eax, ecx
jae 0x4485d6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x44858a
jmp 0x448675
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x448653
cmp dword [ebp - 0x10], 0
je 0x448653
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x466250]
test byte [eax + edi + 0x28], 0x48
je 0x44862d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x448618
mov byte [esi], dl
jmp 0x448629
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x466250]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x448675
cmp byte [ebp - 1], 0xa
jne 0x44863c
cmp esi, ebx
jne 0x44863c
mov byte [esi], 0xa
jmp 0x448674
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044b386
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x448675
mov byte [esi], 0xd
jmp 0x448674
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x466250]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x448672
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x448675
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44867e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x466250]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4486c4
cmp word [ebx], dx
jne 0x4486c4
or byte [eax + edi + 0x28], 4
jmp 0x4486c9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x44882c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x44880c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x44870a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x448740
cmp eax, edx
jae 0x44874e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4486e5
jmp 0x44882c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x448807
cmp dword [ebp - 0x18], 0
je 0x448807
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x466250]
test byte [eax + edi + 0x28], 0x48
je 0x4487dd
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4487a1
mov word [esi], cx
jmp 0x4487d8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x466250]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x466250]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x466250]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x44882c
pop eax
cmp word [ebp - 4], ax
jne 0x4487ed
cmp esi, ebx
jne 0x4487ed
mov word [esi], ax
jmp 0x448829
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044b386
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44882c
push 0xd
pop eax
jmp 0x4487e8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x466250]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x448826
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x44882c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x449537
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45a074
push 0x45a06c
push str.FlsAlloc
push 0x1f
call fcn.004493b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44956b
push dword [ebp + 8]
mov ecx, esi
call dword [0x45530c]
call esi
jmp 0x449571
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4495b5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45a084
push 0x45a07c
push str.FlsGetValue
push 0x21
call fcn.004493b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4495ec
push dword [ebp + 8]
mov ecx, esi
call dword [0x45530c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4495f4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45a08c
push 0x45a084
push str.FlsSetValue
push 0x22
call fcn.004493b6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44962e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45530c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]